# 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/...` =| _ * ; = | ( "pub" <_> )? "var" <_> ( "mut" <_> )? ( "#" <_> )? ? "=" <_> ";" # TODO compile_var mutability.. # TODO "ref", "err", "out" ; = | | "#" ; = | ":" | ":" _ "#" ; =| "=" ";" ; # TODO should the semicolon be in the statement rule ? = | | | ";" | ( "|" "|" )? ";" |