diff options
author | michelou <michelou@epfl.ch> | 2006-03-14 21:24:54 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-03-14 21:24:54 +0000 |
commit | b3acb71544cf830fb6f4b214376b848f2ae5511c (patch) | |
tree | c13f8775fc62be096101fd27c69e13fa55c4ffcd /docs/examples/Parsers.scala | |
parent | 7e5198183bd81afb8dca269ba70e0fb07894bf42 (diff) | |
download | scala-b3acb71544cf830fb6f4b214376b848f2ae5511c.tar.gz scala-b3acb71544cf830fb6f4b214376b848f2ae5511c.tar.bz2 scala-b3acb71544cf830fb6f4b214376b848f2ae5511c.zip |
changed 'mixin class' into 'trait' in docs/exam...
changed 'mixin class' into 'trait' in docs/examples/*.scala
Diffstat (limited to 'docs/examples/Parsers.scala')
-rw-r--r-- | docs/examples/Parsers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/Parsers.scala b/docs/examples/Parsers.scala index 3d83d05fb9..15dc0ce9ef 100644 --- a/docs/examples/Parsers.scala +++ b/docs/examples/Parsers.scala @@ -91,7 +91,7 @@ class Tokenizer(in: Iterator[char], delimiters: String) extends Iterator[String] } } -mixin class TokenParsers extends Parsers { +trait TokenParsers extends Parsers { type inputType = Stream[String] def nextToken() = new Parser[String] { def apply(in: inputType): Result = @@ -99,7 +99,7 @@ mixin class TokenParsers extends Parsers { } } -mixin class CharParsers extends Parsers { +trait CharParsers extends Parsers { def any: Parser[char] def chr(ch: char) = for (val c <- any; c == ch) yield c |