3 instantiations of CILLexer
ILAssembler (3)
DocumentCompiler.cs (3)
34
CILLexer lexer =
new
(inputSource);
43
return new
CILLexer
(includedSource);
44
}, text => new
CILLexer
(new AntlrInputStream(text)), definedVariables);
22 references to CILLexer
ILAssembler (22)
DocumentCompiler.cs (1)
34
CILLexer
lexer = new(inputSource);
PreprocessedTokenSource.cs (21)
87
if (nextToken.Type ==
CILLexer
.Eof)
119
if (nextToken.Type ==
CILLexer
.PP_INCLUDE)
122
if (pathToken.Type !=
CILLexer
.QSTRING)
133
else if (nextToken.Type ==
CILLexer
.PP_DEFINE)
136
if (identifier.Type !=
CILLexer
.ID)
142
if (valueMaybe.Type ==
CILLexer
.QSTRING)
154
if (nextToken.Type ==
CILLexer
.PP_IFDEF)
158
else if (nextToken.Type ==
CILLexer
.PP_IFNDEF)
162
else if (nextToken.Type ==
CILLexer
.PP_ELSE)
179
else if (nextToken.Type ==
CILLexer
.PP_ENDIF)
190
else if (nextToken.Type ==
CILLexer
.ID && _definedVars.TryGetValue(nextToken.Text, out string? newValue) && newValue is not null)
237
if (identifier.Type !=
CILLexer
.ID)
257
for (IToken nextToken = NextTokenWithoutNestedEof(errorOnEof: true); nextToken.Type !=
CILLexer
.PP_ENDIF || numNestedPreprocessorBlocks != 0; nextToken = NextTokenWithoutNestedEof(errorOnEof: true))
259
if (nextToken.Type ==
CILLexer
.Eof)
268
if (nextToken.Type ==
CILLexer
.PP_IFDEF || nextToken.Type ==
CILLexer
.PP_ENDIF)
271
if (identifier.Type !=
CILLexer
.ID)
277
if (nextToken.Type ==
CILLexer
.PP_ENDIF)
284
if (nextToken.Type ==
CILLexer
.PP_ELSE)
298
if (nextToken.Type ==
CILLexer
.PP_IFDEF || nextToken.Type ==
CILLexer
.PP_ENDIF)