public GPBParser_PascalABC(Stream stream, Preprocessor2.Preprocessor2 prepr1)
     : base(stream)
 {
     prepr = prepr1;
     
     GrammarStream = stream;
     parsertools = new pascalabc_parsertools();
 }
Example #2
0
 public override void PreBuildTree(string FileName)
 {
     if (this.parser == null)
         Reset();
     CompilerDirectives = new List<compiler_directive>();
     localparser = new GPBParser_PascalABC(this.grammar_stream, this.parser.LanguageGrammar, preprocessor2);
     localparser.CompilerDirectives = CompilerDirectives;
     localparser.errors = Errors;
     localparser.current_file_name = FileName;
     localparser.parsertools.LineCorrection = 0;
     localparser.build_tree_for_brackets = false;
     preprocessor2 = new Preprocessor2.Preprocessor2(SourceFilesProvider);
 }