public Atomic_Symbol(Semi_Colon _semi_colon)
        {
            semi_colon = _semi_colon;
            Add(semi_colon);

            UpdateProperties("atomic-symbol");
        }
Example #2
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");
        }
Example #3
0
        private Semi_Colon Parse_Semi_Colon()
        {
            /* semi-colon:
             *  ";" */

            if (_scanResult.IsEOL)
            {
                return(null);
            }                                       // must be first line on any atom

            var _data   = _scanResult.CurrentToken;
            var _result = new Semi_Colon(_data);

            if (_result.IsValidated)
            {
                _scanResult.CurrentReadIndex++;
                return(_result);
            }
            else
            {
                return(null);
            }
        }