| Package | Description |
|---|---|
| cz.vutbr.web.csskit.antlr4 |
| Modifier and Type | Field and Description |
|---|---|
protected CSSLexerState |
CSSLexer.ls |
protected CSSLexerState |
CSSToken.ls
Current lexer state
|
| Modifier and Type | Method and Description |
|---|---|
CSSLexerState |
CSSToken.getLexerState()
Gets lexer state at creation of token
|
| Modifier and Type | Method and Description |
|---|---|
void |
CSSErrorStrategy.consumeUntil(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet follow,
CSSLexerState.RecoveryMode mode,
CSSLexerState ls)
Consumes token until lexer state is function-balanced and
token from follow is matched.
|
void |
CSSErrorStrategy.consumeUntilGreedy(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet follow,
CSSLexerState.RecoveryMode mode,
CSSLexerState ls)
Consumes token until lexer state is function-balanced and
token from follow is matched.
|
boolean |
CSSLexerState.isBalanced(CSSLexerState.RecoveryMode mode,
CSSLexerState state,
CSSToken t)
Checks whether some pair characters are balanced.
|
CSSToken |
CSSToken.setLexerState(CSSLexerState state)
Sets lexer state for current token
|
| Constructor and Description |
|---|
CSSLexerState(CSSLexerState clone) |
CSSToken(int type,
CSSLexerState state,
CSSToken.TypeMapper typeMapper)
Creates CSSToken of given type with cloning lexer state
automatically
|
CSSToken(int type,
CSSLexerState state,
int start,
int stop,
CSSToken.TypeMapper typeMapper)
Creates CSSToken of given type with cloning lexer state
automatically, allows to set text boundaries in input stream
|
CSSTokenFactory(org.antlr.v4.runtime.misc.Pair<org.antlr.v4.runtime.TokenSource,org.antlr.v4.runtime.CharStream> input,
org.antlr.v4.runtime.Lexer lexer,
CSSLexerState ls,
Class<? extends org.antlr.v4.runtime.Lexer> lexerClass) |
CSSTokenRecovery(org.antlr.v4.runtime.Lexer lexer,
org.antlr.v4.runtime.CharStream input,
CSSLexerState ls,
org.slf4j.Logger log) |
Copyright © 2019. All rights reserved.