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