public void AddDefine(ICollection <string> defs) { foreach (string def in defs) { MacroDefines.Add(def, string.Empty); } }
public csLexerWithPreProcessor(ICharStream stream, IEnumerable <string> defines) : base(stream) { // By default we are preprocessing input Processing.Push(true); // Grab what's defined from the command line MacroDefines.UnionWith(defines); }
public PreProcessor() { // By default we are preprocessing input Processing.Push(true); // Grab what's defined from the command line string[] args = Environment.GetCommandLineArgs(); for (int n = 0; n < args.Length; ++n) { if (args[n] == "-D") { if ((n + 1) < args.Length) { MacroDefines.Add(args[n + 1], string.Empty); } } } }
public void AddDefine(string def) { MacroDefines.Add(def, string.Empty); }