1 Unanswered Topic

Remove Filter
Member Avatar for
Member Avatar for slimergan

Hi I am trying to implement a parser for a simple language with grammar like this. program ::= "program" declarations "begin" statements "end" declaration ::= "var" ident "as" type type ::= "string" | "int" I have the first two done, how would I write the type grammar? program( prog( DECLS, …

0
165

The End.