AlacrisIO / meta

Internal management of Legicash/Legilogic/Alacris
0 stars 0 forks source link

Single variable in a parenthesis throws a parsing error somewhere else in the code. #124

Open cswenor opened 5 years ago

cswenor commented 5 years ago

I was playing around with modifying the ala syntax and I modified this line. transfer! A <- (escrowAmount + getsA); to be this transfer! A <- (getsA);

When I do that I get this parsing error:

rps.ala:60:15:
   |
60 |     @A publish! saltA, handA w/ 0;
   |               ^
unexpected '!'
expecting ';', '_', '}', or alphanumeric character
jeapostrophe commented 5 years ago

This is not a bug. The syntax does not allow extra ()s in any places, so you'd have to write transfer! A <- getsA; for what you want. You are either asking for the enhancement to allow this or to improve the error messages.

cswenor commented 5 years ago

If this isn't allowed it should throw the correct error.