From bc6f997f0a06bf2c8b2e05d34623474a7f91a986 Mon Sep 17 00:00:00 2001 From: michelou Date: Fri, 26 Aug 2005 12:26:10 +0000 Subject: - removed CR/LF (Windows) characters. --- sources/examples/parsers1.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/examples/parsers1.scala') diff --git a/sources/examples/parsers1.scala b/sources/examples/parsers1.scala index 2ed0f4be4b..143f354049 100644 --- a/sources/examples/parsers1.scala +++ b/sources/examples/parsers1.scala @@ -14,7 +14,7 @@ object parsers1 { /*** p &&& q applies first p, and if that succeeds, then q */ - def &&& (def q: Parser) = new Parser { + def &&& (q: => Parser) = new Parser { def apply(in: inputType): Result = Parser.this.apply(in) match { case None => None case Some(in1) => q(in1) @@ -23,7 +23,7 @@ object parsers1 { /*** p ||| q applies first p, and, if that fails, then q. */ - def ||| (def q: Parser) = new Parser { + def ||| (q: => Parser) = new Parser { def apply(in: inputType): Result = Parser.this.apply(in) match { case None => q(in) case s => s -- cgit v1.2.3