/media/sda-magnetic/david/Extern-Magnetic-2022-06-29/Extern01/Dokumente-2020-11-16/disk10-ab-2020-01-10/02-debian-pc2-work/informatik/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