solutions/cw4/parser.sc
changeset 965 94f5cce73a4f
parent 961 c0600f8b6427
equal deleted inserted replaced
964:da1f8c033b8e 965:94f5cce73a4f
     1 // CW3
     1 // CW3
     2 
     2 
     3 import scala.language.implicitConversions
     3 import scala.language.implicitConversions
     4 
       
     5 import $file.lexer, lexer._ 
     4 import $file.lexer, lexer._ 
     6 
     5 
     7 case class ~[+A, +B](x: A, y: B)
     6 case class ~[+A, +B](x: A, y: B)
     8 
     7 
     9 // parser combinators
     8 // parser combinators