Example #1
0
 public EditorAdapter(Compiler compiler) {
   _compiler = compiler;
   _context = new CompilerContext(_compiler);
   _scanner = compiler.Parser.Scanner;
   _scanner.BeginScan(_context);
   _parseTree = new ParseTree(string.Empty, "Source");
   _colorizerThread = new Thread(ColorizerLoop);
   _colorizerThread.IsBackground = true;
   _parserThread = new Thread(ParserLoop);
   _parserThread.IsBackground = true;
 }
Example #2
0
 public CoreParser(ParserData parserData, Scanner scanner) {
   Data = parserData;
   _grammar = parserData.Grammar;
   _scanner = scanner;
   
 }
Example #3
0
 public Parser(LanguageData language) {
   Language = language; 
   Scanner = new Scanner(Language.ScannerData);
   CoreParser = new CoreParser(Language.ParserData, Scanner); 
 }