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