Пример #1
0
        bool eval_val(string s)
        {
            if (s == "true")
            {
                return(true);
            }
            if (s == "false")
            {
                return(false);
            }

            return(ConditionalSymbols != null && ConditionalSymbols.Contains(s));
        }
Пример #2
0
 protected CSharpPreprocessorParserBase(ITokenStream input)
     : base(input)
 {
     conditions.Push(true);
     ConditionalSymbols.Add("DEBUG");
 }
Пример #3
0
 protected CSharpPreprocessorParserBase(ITokenStream input, TextWriter output, TextWriter errorOutput)
     : base(input, output, errorOutput)
 {
     conditions.Push(true);
     ConditionalSymbols.Add("DEBUG");
 }