public MainWindow() { InitializeComponent(); Parser = ParserConstructor.GetExtendedParser <IPair <IPair <ITypeCheckStmnt, IPrintStmnt>, IFormStmnt>, IPair <IPair <ITypeCheckExpr, IPrintExpr>, IFormExpr>, IPair <IPair <ITypeCheckType, IPrintType>, IFormType>, TypeCheckPrintFormFactory>(new TypeCheckPrintFormFactory()); Parser.OnReduction += OnReduction; Parser.OnCompletion += OnCompletion; Parser.OnGroupError += OnGroupError; Parser.OnInternalError += OnInternalError; Parser.OnNotLoadedError += OnNotLoadedError; Parser.OnLexicalError += OnLexicalError; Parser.OnSyntaxError += OnSyntaxError; }
internal static ParserConstructor GetConstructor(ParserConstructor parserConstructor) { return(parserConstructor); }