new sample grammar
parent
3bc9fc3173
commit
c5a1126754
@ -0,0 +1,7 @@
|
|||||||
|
#lang brag
|
||||||
|
|
||||||
|
expr : term (/'+' term)*
|
||||||
|
@term : factor (/'*' @factor)*
|
||||||
|
factor : ("0" | "1" | "2" | "3"
|
||||||
|
| "4" | "5" | "6" | "7"
|
||||||
|
| "8" | "9")+
|
Loading…
Reference in New Issue