diff options
author | michelou <michelou@epfl.ch> | 2005-08-26 12:26:10 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-08-26 12:26:10 +0000 |
commit | bc6f997f0a06bf2c8b2e05d34623474a7f91a986 (patch) | |
tree | cd15ad469f2c57dfcef828ba17ca74b75472c82e /sources/examples/parsers1.scala | |
parent | a33babfcf15b3022e3850e48a2731317dd4ee027 (diff) | |
download | scala-bc6f997f0a06bf2c8b2e05d34623474a7f91a986.tar.gz scala-bc6f997f0a06bf2c8b2e05d34623474a7f91a986.tar.bz2 scala-bc6f997f0a06bf2c8b2e05d34623474a7f91a986.zip |
- removed CR/LF (Windows) characters.
Diffstat (limited to 'sources/examples/parsers1.scala')
-rw-r--r-- | sources/examples/parsers1.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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 |