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
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
The Scala compiler and reflection APIs.