diff options
author | michelou <michelou@epfl.ch> | 2005-09-21 13:14:56 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-09-21 13:14:56 +0000 |
commit | 14c330159a76b428b4ca5aa25c112d61836bd79a (patch) | |
tree | a037c85564b4e3d347ff038b9e05ab6ad401ed41 | |
parent | 65c1d826b26fefe2b4e3c736f93af1a577d0ff06 (diff) | |
download | scala-14c330159a76b428b4ca5aa25c112d61836bd79a.tar.gz scala-14c330159a76b428b4ca5aa25c112d61836bd79a.tar.bz2 scala-14c330159a76b428b4ca5aa25c112d61836bd79a.zip |
- updated name of type member.
-rw-r--r-- | sources/examples/parsers2.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/examples/parsers2.scala b/sources/examples/parsers2.scala index ee830b894f..47fa8d0f2e 100644 --- a/sources/examples/parsers2.scala +++ b/sources/examples/parsers2.scala @@ -40,7 +40,7 @@ object parsers2 { } class ParseString(s: String) extends Parsers { - type intype = int; + type inputType = int; val input = 0; def any = new Parser[char] { def apply(in: int): Parser[char]#Result = @@ -56,7 +56,7 @@ object parsers2 { case Some(Pair(list, _)) => Console.println("parsed: " + list); case None => "nothing parsed" } - } else "usage: java examples.parsers2 <expr-string>" + } else "usage: scala examples.parsers2 <expr-string>" ); } |