3 instantiations of CILLexer
ILAssembler (3)
DocumentCompiler.cs (3)
31
CILLexer lexer =
new
(inputSource);
37
return new
CILLexer
(includedSource);
38
}, text => new
CILLexer
(new StringCharStream(text)), definedVariables);
22 references to CILLexer
ILAssembler (22)
DocumentCompiler.cs (1)
31
CILLexer
lexer = new(inputSource);
PreprocessedTokenSource.cs (21)
88
if (nextToken.Type !=
CILLexer
.Eof)
135
if (nextToken.Type ==
CILLexer
.PP_INCLUDE)
138
if (pathToken.Type !=
CILLexer
.QSTRING)
149
else if (nextToken.Type ==
CILLexer
.PP_DEFINE)
152
if (identifier.Type !=
CILLexer
.ID)
158
if (valueMaybe.Type ==
CILLexer
.QSTRING)
176
if (nextToken.Type ==
CILLexer
.PP_IFDEF)
180
else if (nextToken.Type ==
CILLexer
.PP_IFNDEF)
184
else if (nextToken.Type ==
CILLexer
.PP_ELSE)
201
else if (nextToken.Type ==
CILLexer
.PP_ENDIF)
212
else if (nextToken.Type ==
CILLexer
.ID && _definedVars.TryGetValue(nextToken.Text, out string? newValue) && newValue is not null)
259
if (identifier.Type !=
CILLexer
.ID)
279
for (IToken nextToken = NextTokenWithoutNestedEof(errorOnEof: true); nextToken.Type !=
CILLexer
.PP_ENDIF || numNestedPreprocessorBlocks != 0; nextToken = NextTokenWithoutNestedEof(errorOnEof: true))
281
if (nextToken.Type ==
CILLexer
.Eof)
290
if (nextToken.Type ==
CILLexer
.PP_IFDEF || nextToken.Type ==
CILLexer
.PP_ENDIF)
293
if (identifier.Type !=
CILLexer
.ID)
299
if (nextToken.Type ==
CILLexer
.PP_ENDIF)
306
if (nextToken.Type ==
CILLexer
.PP_ELSE)
320
if (nextToken.Type ==
CILLexer
.PP_IFDEF || nextToken.Type ==
CILLexer
.PP_ENDIF)