dumb repl

This commit is contained in:
2022-12-03 01:58:45 +01:00
parent ce78d96a9c
commit 5296396107
4 changed files with 18 additions and 3 deletions

View File

@ -1,5 +1,5 @@
ebnf = r"""
expr = (number ws?)*
expr = (number ws?)+
number = factor additive*
additive = ("+"/"-") factor
factor = primary multiplicative*