abstract class BaseLexer[T <: Token] extends Lexer[T]
- Alphabetic
- By Inheritance
- BaseLexer
- Lexer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BaseLexer(input: LexerInput, positionOffset: Position)
Abstract Value Members
-
abstract
def
initialize(): Unit
Init must initialize the current _tokenData (may be invoking advance)
Init must initialize the current _tokenData (may be invoking advance)
- Attributes
- protected
-
abstract
def
processPending(): Unit
Process all pending tokens.
Process all pending tokens. Trivial implementation just emit the EofToken More complex ones can continue returning pending tokens until they emit the EofToken
- Attributes
- protected
Concrete 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
-
final
def
advance(): Unit
Advance the lexer to the next token.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
beginOfLine: Boolean
- Annotations
- @inline()
-
final
def
check(str: String): Int
Compare with the specified String and return 0 or the length of the string if all characters are equal
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
consume(str: String): Boolean
Compare with the specified String and consume if all characters are equal
-
def
consume(c: Char): Boolean
Compare with the specified char and consume if they are equal
Compare with the specified char and consume if they are equal
- Attributes
- protected
-
final
def
consume(n: Int): Unit
- Attributes
- protected
- final def consume(): Unit
- final def consumeAndEmit(n: Int, token: T): Boolean
- final def consumeAndEmit(t1: T, t2: T): Boolean
- final def consumeAndEmit(token: T): Boolean
-
def
consumeWhile(p: (Int) ⇒ Boolean): Unit
- Attributes
- protected
-
final
def
currentChar: Int
- Attributes
- protected
-
def
emit(t1: T, t2: T): Boolean
Emit 2 Tokens
Emit 2 Tokens
- Annotations
- @failfast()
-
def
emit(token: T): Boolean
Emit a Token
Emit a Token
- Annotations
- @failfast()
-
def
emitForMark(t1: T, t2: T): Boolean
Emit 2 Tokens with same mark
Emit 2 Tokens with same mark
- Attributes
- protected
- Annotations
- @failfast()
-
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] )
-
def
findToken(chr: Int): Unit
- Attributes
- protected
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var input: LexerInput
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def lookAhead(n: Int): Int
-
var
mark: Position
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEof: Boolean
We're not at the Eof
-
def
nonTokenEmitted: Boolean
Check if there are emitted tokens
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def optional(p: Boolean): Boolean
- val positionOffset: Position
-
def
reset(): Unit
- Attributes
- protected
- val sourceName: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
token: T
get the current token in the input stream.
-
def
tokenData: TD
All the token data.
-
val
tokenQueue: Queue[TD]
- Attributes
- protected
-
def
tokenString: String
Get the current Token String.
Get the current Token String.
- Definition Classes
- Lexer
-
def
tokenText: CharSequence
Get the current Token Char Sequence.
-
def
tokenText(td: TD): CharSequence
Get the specified Token Char Sequence.
-
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
- @native() @throws( ... )