2 instantiations of CILLexer
ILAssembler (2)
DocumentCompiler.cs (2)
22
CILLexer lexer =
new
(inputSource);
36
return new
CILLexer
(includedSource);
24 references to CILLexer
ILAssembler (24)
DocumentCompiler.cs (1)
22
CILLexer
lexer = new(inputSource);
PreprocessedTokenSource.cs (23)
78
if (nextToken.Type ==
CILLexer
.Eof)
105
if (nextToken.Type ==
CILLexer
.PP_INCLUDE)
108
if (pathToken.Type !=
CILLexer
.QSTRING)
119
else if (nextToken.Type ==
CILLexer
.PP_DEFINE)
122
if (identifier.Type !=
CILLexer
.ID)
128
if (valueMaybe.Type ==
CILLexer
.QSTRING)
140
if (nextToken.Type ==
CILLexer
.PP_IFDEF)
144
else if (nextToken.Type ==
CILLexer
.PP_IFNDEF)
148
else if (nextToken.Type ==
CILLexer
.PP_ELSE)
165
else if (nextToken.Type ==
CILLexer
.PP_ENDIF)
176
else if (nextToken.Type ==
CILLexer
.ID && _definedVars.TryGetValue(nextToken.Text, out string? newValue) && newValue is not null)
180
writableToken.Type = newValue.Contains('.') ?
CILLexer
.DOTTEDNAME :
CILLexer
.ID;
189
if (identifier.Type !=
CILLexer
.ID)
209
for (IToken nextToken = NextTokenWithoutNestedEof(errorOnEof: true); nextToken.Type !=
CILLexer
.PP_ENDIF || numNestedPreprocessorBlocks != 0; nextToken = NextTokenWithoutNestedEof(errorOnEof: true))
211
if (nextToken.Type ==
CILLexer
.Eof)
220
if (nextToken.Type ==
CILLexer
.PP_IFDEF || nextToken.Type ==
CILLexer
.PP_ENDIF)
223
if (identifier.Type !=
CILLexer
.ID)
229
if (nextToken.Type ==
CILLexer
.PP_ENDIF)
236
if (nextToken.Type ==
CILLexer
.PP_ELSE)
250
if (nextToken.Type ==
CILLexer
.PP_IFDEF || nextToken.Type ==
CILLexer
.PP_ENDIF)