EditorViewAdapterList _viewsCopy; //copy used in refresh loop; set to null when views are added/removed #endregion Fields #region Constructors 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; }
public CoreParser(ParserData parserData, Scanner scanner) { Data = parserData; _grammar = parserData.Language.Grammar; _scanner = scanner; }
public Parser(LanguageData language) { Language = language; Scanner = new Scanner(Language.ScannerData); CoreParser = new CoreParser(Language.ParserData, Scanner); }