Class VersionedGLSLLexer
java.lang.Object
org.antlr.v4.runtime.Recognizer<Integer,LexerATNSimulator>
org.antlr.v4.runtime.Lexer
io.github.douira.glsl_transformer.tree.VersionedGLSLLexer
- All Implemented Interfaces:
TokenSource
Provides utility methods for the Lexer to only recognize tokens allowed in
the current context, version, profile, extension setting, ES/non-ES mode,
Vulkan/non-Vulkan mode. For more information, see
https://github.com/KhronosGroup/glslang/blob/master/glslang/MachineIndependent/Scan.cpp}
and
https://github.com/KhronosGroup/glslang/blob/master/glslang/MachineIndependent/Versions.cpp.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanFields inherited from class org.antlr.v4.runtime.Lexer
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIPFields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, emit, emitEOF, getAllTokens, getChannel, getChannelNames, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getModeNames, getSourceName, getText, getToken, getTokenFactory, getTokenNames, getType, mode, more, nextToken, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skipMethods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getATN, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getGrammarFileName, getInterpreter, getParseInfo, getRuleIndexMap, getRuleNames, getSerializedATN, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, getVocabulary, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
Field Details
-
version
-
enableCustomDirective
public boolean enableCustomDirective -
enableIncludeDirective
public boolean enableIncludeDirective
-
-
Constructor Details
-
VersionedGLSLLexer
-
VersionedGLSLLexer
public VersionedGLSLLexer()
-
-
Method Details
-
isAfter
protected boolean isAfter(int atLeast)
-