forked from x/ContextOS
add yac.txt
This commit is contained in:
parent
39a8a826ba
commit
6677124f1f
18
etc/yac.txt
Normal file
18
etc/yac.txt
Normal file
@ -0,0 +1,18 @@
|
||||
num num [0-9]+
|
||||
key key [a-zA-Z]+
|
||||
|
||||
op2 op2 [>=<]
|
||||
op2 op2 [+\-*/%]
|
||||
val val mul{ num key }
|
||||
exp exp val
|
||||
exp exp val op2 val
|
||||
|
||||
stm var var key = exp
|
||||
stm let let key = exp
|
||||
stm for for exp
|
||||
stm if if exp
|
||||
stm end end
|
||||
stm cmd pwd
|
||||
|
||||
script script rep{ stm }
|
||||
|
Loading…
x
Reference in New Issue
Block a user