[Ohrrpgce] SVN: teeemcee/11667 physpeak: seperate expressions/statements/namelist and better comma, new

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Tue Mar 31 05:04:54 PDT 2020


teeemcee
2020-03-31 05:04:54 -0700 (Tue, 31 Mar 2020)
673
physpeak: seperate expressions/statements/namelist and better comma, newline handling

You can now put 'if()' and 'then()' on separate lines, and the treatment of
commas and newlines is pretty close to HSpeak, but a bit stricter.
Only 10 out of 498 scripts in baconthulhu+plotscr.hsd fail to compile.
Commas before 'then', 'else', 'do' aren't allowed yet.
But you can write "x() y" without comma, like HSpeak... which I didn't actually
want.

Statements are no longer allowed in expression lists, and expressions aren't
allowed inside variable(), :=/+=/-=/$..+".."/$..=".." are treated as
expressions, etc.

Fixes the reduce/reduce conflict and most shift/reduce conflicts.
---
U   wip/physpeak/hs_lib/hs_parse.py
U   wip/physpeak/hs_lib/hs_tld.py
U   wip/physpeak/hsi.py


More information about the Ohrrpgce mailing list