Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add matrices to Monicelli #39

Open
marcoxa opened this issue Mar 19, 2017 · 2 comments
Open

Add matrices to Monicelli #39

marcoxa opened this issue Mar 19, 2017 · 2 comments

Comments

@marcoxa
Copy link

marcoxa commented Mar 19, 2017

Hi

In English just for the casual github reader.

Can I propose a syntax for "arrays"?

tavola [al <variable>] [per <N>]*

So you can now declare a matrix 2x2 (using the usual C semantics) as

voglio una tavola al papero per due per due, Necchi

Then you can access it with

al posto <N> [e [al posto] <M>]* del <variabile>

To get the element in position 1, 1 in the previous example you can say

al posto uno e uno del papero

Which has a nice "mascettian" ring to it.

Just a thought :)

Cheers

MA

@lo-bertolino
Copy link

Instead of voglio una tavola al papero per due per due, Necchi
I think that voglio una tavola al papero per due per due per il Necchi would fit better
for no real reason, it just looks nicer to me

@marcoxa
Copy link
Author

marcoxa commented Mar 22, 2017

Yes. But it would make the parser more complicated and would change the declaration stile of other variables :)

@esseks esseks changed the title A "tavola"! Declare matrixes with "tavola" Jun 24, 2019
@esseks esseks changed the title Declare matrixes with "tavola" Add matrixes to Monicelli Jun 24, 2019
@esseks esseks changed the title Add matrixes to Monicelli Add matrices to Monicelli Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants