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