--- a/progs/fun.scala Mon Nov 24 00:11:31 2014 +0000
+++ b/progs/fun.scala Mon Nov 24 00:42:04 2014 +0000
@@ -128,7 +128,6 @@
val LPAREN: Rexp = "("
val ALL = SYM | DIGIT | OP | " " | ":" | ";" | "\"" | "=" | "," | "(" | ")"
val ALL2 = ALL | "\n"
-//val COMMENT2 = ("/*" ~ NOT(ALL.% ~ "*/" ~ ALL.%) ~ "*/")
val COMMENT = ("/*" ~ ALL2.% ~ "*/") | ("//" ~ ALL.% ~ "\n")
@@ -232,8 +231,6 @@
case Bop(_, a1, a2) => max_stack_exp(a1) + max_stack_exp(a2)
}
-
-
// Parser combinators
abstract class Parser[I <% Seq[_], T] {
def parse(ts: I): Set[(T, I)]
@@ -479,5 +476,5 @@
//examples
-//compile_run("defs.rec")
-compile_run("fact.rec")
+compile_run("defs.rec")
+//compile_run("fact.rec")