/// <summary> /// /// </summary> /// <param name="FileName"></param> /// <param name="Text"></param> /// <param name="Context"></param> public CPreprocessorInternal(string FileName, string Text, CPreprocessorContext Context) { // Remove comments. try { FileName = Path.GetFullPath(FileName); } catch { } if (Context.DebugPreprocessor) { Console.WriteLine("CPreprocessorInternal(FileName={0})", FileName); } Text = CPreprocessor.RemoveComments(Text.Replace("\r\n", "\n").Replace("\r", "\n")); this.Text = Text; this.CurrentFileName = FileName; this.CTokenizer = new CTokenizer(Text, TokenizeSpaces: true); this.Context = Context; this.Tokens = new CTokenReader(CTokenizer.Tokenize()); this.Tokens.MoveNextSpace(); OutputLine(); //Console.WriteLine(Tokens.GetString()); }