예제 #1
0
        public Whitespace_Sequence(Whitespace _whitespace_1, Whitespace_Sequence _self_whitespace_sequence = null)
        {
            // set values
            whitespace_1             = _whitespace_1;
            self_whitespace_sequence = _self_whitespace_sequence;

            // add to dictionary
            Add(whitespace_1);
            Add(self_whitespace_sequence);

            // set properties
            UpdateProperties("Whitespace-Sequence", RecursiveProperty.Right);
        }
예제 #2
0
        public Rule_Name_Sequence(Whitespace_Sequence _opt_whitespace_sequence_1, Rule_Name _rule_name_1, Rule_Name_Sequence _self_rule_name_sequence)
        {
            // set values
            opt_whitespace_sequence_1 = _opt_whitespace_sequence_1;
            rule_name_1             = _rule_name_1;
            self_rule_name_sequence = _self_rule_name_sequence;
            // add to dictionary
            Add(opt_whitespace_sequence_1);
            Add(rule_name_1);
            Add(self_rule_name_sequence);

            // set properties
            UpdateProperties("Rule-Name-Sequence", RecursiveProperty.Right);
        }
        public Production_Rule_Sequence(Whitespace_Sequence _opt_whitespace_sequence_1, Production_Rule _production_rule, Production_Rule_Sequence _self_production_rule_sequence = null)
        {
            // set values
            opt_whitespace_sequence_1     = _opt_whitespace_sequence_1;
            production_rule               = _production_rule;
            self_production_rule_sequence = _self_production_rule_sequence;

            // add to dictionary
            Add(opt_whitespace_sequence_1);
            Add(production_rule);
            Add(self_production_rule_sequence);

            // set properties
            UpdateProperties("Production-Rule-Sequence", RecursiveProperty.Right);
        }
예제 #4
0
        private Whitespace_Sequence Parse_Whitespace_Sequence(Whitespace_Sequence _self = null)
        {
            var _backtrack = _scanResult.CurrentReadIndex;

            var _whitespace_sequence_1 = Parse_Whitespace_Sequence_1(_self);

            if (_whitespace_sequence_1 != null)
            {
                _self = Parse_Whitespace_Sequence(_whitespace_sequence_1);
            }

            UpdateBacktrackIndex(_self, _backtrack);


            return(_self);
        }
예제 #5
0
        public Char_Litteral(Whitespace_Sequence _opt_whitespace_sequence_1, Single_Quote _single_quote_1, Atomic_Symbol _atomic_symbol, Single_Quote _single_quote_2, Whitespace_Sequence _opt_whitespace_sequence_2)
        {
            opt_whitespace_sequence_1 = _opt_whitespace_sequence_1;
            single_quote_1            = _single_quote_1;
            atomic_symbol             = _atomic_symbol;
            single_quote_2            = _single_quote_2;
            opt_whitespace_sequence_2 = _opt_whitespace_sequence_2;

            Add(opt_whitespace_sequence_1);
            Add(single_quote_1);
            Add(atomic_symbol);
            Add(single_quote_2);
            Add(opt_whitespace_sequence_2);



            UpdateProperties("char-litteral");
        }
예제 #6
0
        public Production_Rule(Production_Name _production_name, Whitespace_Sequence _opt_whitespace_sequence_1, Rule_Name_Sequence _rule_name_sequence, Whitespace_Sequence _opt_whitespace_sequence_2, Semi_Colon _semi_colon, Whitespace_Sequence _opt_whitespace_sequence_3)
        {
            production_name           = _production_name;
            opt_whitespace_sequence_1 = _opt_whitespace_sequence_1;
            rule_name_sequence        = _rule_name_sequence;
            opt_whitespace_sequence_2 = _opt_whitespace_sequence_2;
            semi_colon = _semi_colon;
            opt_whitespace_sequence_3 = _opt_whitespace_sequence_3;

            Add(production_name);
            Add(opt_whitespace_sequence_1);
            Add(rule_name_sequence);
            Add(opt_whitespace_sequence_2);
            Add(semi_colon);
            Add(opt_whitespace_sequence_3);

            UpdateProperties("production-rule");
        }
예제 #7
0
        public Rule_Name_Sequence(Rule_Name _rule_name_1, Whitespace_Sequence _opt_whitespace_sequence_1, Pipe _pipe_1, Whitespace_Sequence _opt_whitespace_sequence_2, Rule_Name _rule_name_2, Rule_Name_Sequence _self_rule_name_sequence = null)
        {
            // set values
            rule_name_1 = _rule_name_1;
            opt_whitespace_sequence_1 = _opt_whitespace_sequence_1;
            pipe_1 = _pipe_1;
            opt_whitespace_sequence_2 = _opt_whitespace_sequence_2;
            rule_name_2             = _rule_name_2;
            self_rule_name_sequence = _self_rule_name_sequence;

            // add to dictionary
            Add(rule_name_1);
            Add(opt_whitespace_sequence_1);
            Add(pipe_1);
            Add(opt_whitespace_sequence_2);
            Add(rule_name_2);
            Add(self_rule_name_sequence);


            // set properties
            UpdateProperties("Rule-Name-Sequence", RecursiveProperty.Right);
        }