From 98be3213152ccec134da3e7856b8096beafcc6d8 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 6 May 2009 15:38:18 +0000 Subject: Added NoSuccess extractor to combinator lib. --- test/files/run/packrat1.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/files/run/packrat1.scala') diff --git a/test/files/run/packrat1.scala b/test/files/run/packrat1.scala index 69eb8c5fc9..26fa8e76f2 100644 --- a/test/files/run/packrat1.scala +++ b/test/files/run/packrat1.scala @@ -22,10 +22,9 @@ object Test extends Application{ object grammars extends StandardTokenParsers with PackratParsers{ - def extractResult(r : ParseResult[_]) = r match{ + def extractResult(r : ParseResult[_]) = r match { case Success(a,_) => a - case Failure(a,_) => a - case Error(a,_) => a + case NoSuccess(a,_) => a } lexical.delimiters ++= List("+","-","*","/","(",")") -- cgit v1.2.3