parser2.scala
changeset 64 2d625418c011
parent 62 5988e44ea048
child 71 7717f20f0504
--- a/parser2.scala	Wed Nov 14 08:46:00 2012 +0000
+++ b/parser2.scala	Mon Nov 19 14:18:42 2012 +0000
@@ -115,6 +115,7 @@
 lazy val T: Parser = (F ~ T_OP("*") ~ T) || F
 lazy val F: Parser = (T_LPAREN ~ E ~ T_RPAREN) || NumParser
    
+tokenizer(lexing_rules, "1 + 2 + 3")
 println(E.parse_all(tokenizer(lexing_rules, "1 + 2 + 3")))
 
 def eval(t: ParseTree) : Int = t match {