/media/sda-magnetic/david/Dok-15-2023-11-27/fernuni-hagen/cs-i-ii/old-cs-2-03/pascal-compiler/siac4t/grammatik-bsp00001.txt


stmt ::= assignment | cond
boolexpr ::= numexpr cop numexpr
numexpr ::= numexpr + term | term
term ::= term * factor | factor
factor ::= id | const | (numexpr)
loop ::= while boolexpr do stmt od
if ::= if boolexpr then stamt fi | if boolexpr then stmt else stmt fi
assigment ::= id := expr
expr ::= boolexpr | numexpr