compiler construction - haskell grammar for cup file -
i working on haskell compiler written in java using jlex , cup .i finished lexer file , working on parser.cup file should define terminals , non-terminals , grammar. have finished terminal , non-terminal part stuck in grammar part can or redirect me link can find grammar haskell in form :
variable ::= nonterminal:name terminal:name {:result = /* code execute when rule matched , result printed out */ ;:} | blablabla ;
any appreciated .
Comments
Post a Comment