Beispiel #1
0
        public Semantics(ail.net.parser.LexAnalyzer xi_lexer, ArrayList xi_errors)
        {
            ail.net.framework.Assert.NonNullReference(xi_lexer, "xi_lexer");
            ail.net.framework.Assert.NonNullReference(xi_errors, "xi_errors");

            LexerAttr  = xi_lexer;
            ErrorsAttr = xi_errors;
        }
Beispiel #2
0
        protected ail.net.parser.Parser.EStatus StatusAttr; // result
        #endregion                                          // data members

        #region ctor/dtor/finalizer
        public Parser(ail.net.parser.LexAnalyzer xi_lexer, ail.net.parser.Grammar xi_grammar, ArrayList xi_errors)
        {
            ail.net.framework.Assert.NonNullReference(xi_lexer, "xi_lexer");
            ail.net.framework.Assert.NonNullReference(xi_grammar, "xi_grammar");
            ail.net.framework.Assert.NonNullReference(xi_errors, "xi_errors");

            LexerAttr     = xi_lexer;
            LexerModeAttr = ail.net.parser.Parser.ELexerMode.eIgnoreWhitespace;
            GrammarAttr   = xi_grammar;
            ErrorsAttr    = xi_errors;
            StatusAttr    = ail.net.parser.Parser.EStatus.eUnknown;
        }
Beispiel #3
0
 public AhoEarleyParser(ail.net.parser.LexAnalyzer xi_lexer, ail.net.parser.Grammar xi_grammar, ArrayList xi_errors)
     : base(xi_lexer, xi_grammar, xi_errors)
 {
 }
Beispiel #4
0
 public AhoSemantics(ail.net.parser.LexAnalyzer xi_lexer, ArrayList xi_errors)
     : base(xi_lexer, xi_errors)
 {
 }
Beispiel #5
0
 public KarpovLR1eParser(ail.net.parser.LexAnalyzer xi_lexer, ail.net.parser.Grammar xi_grammar, ArrayList xi_errors)
     : base(xi_lexer, xi_grammar, xi_errors)
 {
 }
        private ail.net.parser.Semantics SemanticsAttr;                 // semantics interface
        #endregion                                                      // data members

        #region ctor/dtor/finalizer
        public EarleyParser(ail.net.parser.LexAnalyzer xi_lexer, ail.net.parser.Grammar xi_grammar, ArrayList xi_errors)
            : base(xi_lexer, xi_grammar, xi_errors)
        {
            ParserModeAttr = ail.net.parser.EarleyParser.EParserMode.eRecognizer;
        }
 public GlrAlwaysBrokenSemantics(ail.net.parser.LexAnalyzer xi_lexer, ArrayList xi_errors)
     : base(xi_lexer, xi_errors)
 {
 }