object Lexer
Companion object of class Lexer
which defines tokens and some utility concepts
used for tokens and lexers
- Source
- Lexer.scala
- Alphabetic
- By Inheritance
- Lexer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- î
case class Delim(char: Char) extends Token with Product with Serializable
A subclass of
Token
representing single-character delimitersA subclass of
Token
representing single-character delimiters- char
the delimiter character making up this token
- î
case class FloatLit(str: String) extends Token with Product with Serializable
A subclass of token representing floating point literals
- î
case class IntLit(str: String) extends Token with Product with Serializable
A subclass of token representing integer literals
- î
class MalformedInput extends Exception
An exception raised if an input does not correspond to what's expected
- î
case class StringLit(str: String) extends Token with Product with Serializable
A subclass of token representing string literals
- î
class Token extends AnyRef
The class of tokens, i.e.
The class of tokens, i.e. descriptions of input words (or: lexemes).
Value Members
- î
final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef â Any
- î
final def ##: Int
- Definition Classes
- AnyRef â Any
- î
final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef â Any
- î
val Colon: Delim
The '
:
' token - î
val Comma: Delim
The '
,
' token - î
val EOF: Token
The token representing end of input
- î
val FalseLit: Token
The
false
token - î
val LBrace: Delim
The '
{
' token - î
val LBracket: Delim
The '
[
' token - î
val LParen: Delim
The '
(
' token - î
val NullLit: Token
The
null
token - î
val RBrace: Delim
The '
}
' token - î
val RBracket: Delim
The '
]
' token - î
val RParen: Delim
The '
)
' token - î
val TrueLit: Token
The
true
token - î
final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- î
def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- î
final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- î
def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef â Any
- î
def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- î
final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef â Any
- Annotations
- @native()
- î
def hashCode(): Int
- Definition Classes
- AnyRef â Any
- Annotations
- @native()
- î
final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- î
final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- î
final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- î
final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- î
def quoted(str: String): String
Returns given string enclosed in
"
-quotes with all string characters escaped so that they correspond to the JSON standard.Returns given string enclosed in
"
-quotes with all string characters escaped so that they correspond to the JSON standard. Characters that escaped are:"
,\b
,\f
,\n
,\r
,\t
,\
. Furthermore, every other character which is not in the ASCII range 32-127 is escaped as a four hex-digit unicode character of the form\ u x x x x
.- str
the string to be quoted
- î
final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- î
def toString(): String
- Definition Classes
- AnyRef â Any
- î
final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- î
final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- î
final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
The Scala compiler and reflection APIs.