예제 #1
0
        public Atomic_Symbol(Colon _colon)
        {
            colon = _colon;
            Add(colon);

            UpdateProperties("atomic-symbol");
        }
예제 #2
0
        public Production_Name(Valid_Letter_Sequence _valid_letter_sequence, Colon _colon)
        {
            valid_letter_sequence = _valid_letter_sequence;
            colon = _colon;

            Add(valid_letter_sequence);
            Add(colon);

            UpdateProperties("production-name");
        }
예제 #3
0
        private Colon Parse_Colon()
        {
            /* colon:
             *  ":" */

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

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

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