Added a core namespace with a -main method; upversioned.
Also, Interactive read-eval-print loop, debugging, and other minor enhancements.
This commit is contained in:
parent
f2a48cbe04
commit
4d3c36959c
9 changed files with 444 additions and 90 deletions
8
resources/grammar.bnf
Normal file
8
resources/grammar.bnf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
EXPRESSION := NUMBER | NUMBER <SPACE> OPERATOR <SPACE> EXPRESSION
|
||||
<NUMBER> := #'[IVXLCDM]+'
|
||||
<OPERATOR> := ADD | SUBTRACT | MULTIPLY | DIVIDE
|
||||
ADD := <'+'>
|
||||
SUBTRACT := <'-'>
|
||||
MULTIPLY := <'x'> | <'*'>
|
||||
DIVIDE := <'/'>
|
||||
SPACE := #'(?U)\s+'
|
||||
Loading…
Add table
Add a link
Reference in a new issue