changeset 85 | 1a4065f965fb |
parent 76 | 373cf55a3ca5 |
--- a/parser3.scala Wed Nov 28 08:28:26 2012 +0000 +++ b/parser3.scala Mon Dec 03 15:35:27 2012 +0000 @@ -1,5 +1,9 @@ +package object parser { -// parser combinators with input type I and return type T +// parser combinators +// with input type I and return type T +// +// needs to be compiled with scalac parser3.scala abstract class Parser[I <% Seq[_], T] { def parse(ts: I): Set[(T, I)] @@ -34,4 +38,4 @@ for ((head, tail) <- p.parse(sb)) yield (f(head), tail) } - +}