Пример #1
0
        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;
        }
Пример #2
0
 internal static ParserConstructor GetConstructor(ParserConstructor parserConstructor)
 {
     return(parserConstructor);
 }