# 2025-02-03 # 2025-02-13 # https://smlweb.cpsc.ucalgary.ca/start.html # https://smlweb.cpsc.ucalgary.ca/example-grammars/ # pan grammar # dotlr ######################################## # module ############################### ######################################## <_> =| * ; =| ' \t\n' ; # TODO `#!/usr/bin/...` =| <_> * ; = | ? "var" <_> ? ? ? '=' <_> ';' <_> # TODO compile_var mutability.. # TODO "ref", "err", "out" ; =| "pub" <_> ; =| "mut" <_> ; =| "#" <_> ; = | | "#" <_> ; = | ":" <_> | ":" <_> "#" <_> ; =| '=' <_> ';' <_> ; # TODO should the semicolon be in the statement rule ? = | | | ";" <_> | ? ";" <_> |