monicelli icon indicating copy to clipboard operation
monicelli copied to clipboard

Add matrices to Monicelli

Open marcoxa opened this issue 7 years ago • 2 comments

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

marcoxa avatar Mar 19 '17 14:03 marcoxa

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

lo-bertolino avatar Mar 21 '17 19:03 lo-bertolino

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

marcoxa avatar Mar 22 '17 01:03 marcoxa