summaryrefslogtreecommitdiff
path: root/src/library/scala/util/parsing/combinatorold/lexical/Lexical.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/util/parsing/combinatorold/lexical/Lexical.scala')
-rw-r--r--src/library/scala/util/parsing/combinatorold/lexical/Lexical.scala41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/library/scala/util/parsing/combinatorold/lexical/Lexical.scala b/src/library/scala/util/parsing/combinatorold/lexical/Lexical.scala
deleted file mode 100644
index 7a219c5ef4..0000000000
--- a/src/library/scala/util/parsing/combinatorold/lexical/Lexical.scala
+++ /dev/null
@@ -1,41 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2006-2009, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-\* */
-
-// $Id$
-
-
-package scala.util.parsing.combinatorold.lexical
-
-import scala.util.parsing.syntax._
-import scala.util.parsing.input.CharArrayReader.EofCh
-
-/** <p>
- * This component complements the <code>Scanners</code> component with
- * common operations for lexical parsers.
- * </p>
- * <p>
- * {@see StdLexical} for a concrete implementation for a simple, Scala-like
- * language.
- * </p>
- *
- * @author Martin Odersky, Adriaan Moors
- */
-abstract class Lexical extends Scanners with Tokens {
-
- /** A character-parser that matches a letter (and returns it)*/
- def letter = elem("letter", _.isLetter)
-
- /** A character-parser that matches a digit (and returns it)*/
- def digit = elem("digit", _.isDigit)
-
- /** A character-parser that matches any character except the ones given in `cs' (and returns it)*/
- def chrExcept(cs: Char*) = elem("", ch => (cs forall (ch !=)))
-
- /** A character-parser that matches a white-space character (and returns it)*/
- def whitespaceChar = elem("space char", ch => ch <= ' ' && ch != EofCh)
-}