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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -