예제 #1
0
        public Atomic_Symbol(Whitespace _whitespace)
        {
            whitespace = _whitespace;
            Add(whitespace);

            UpdateProperties("atomic-symbol");
        }
예제 #2
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);
        }
예제 #3
0
        private Whitespace Parse_Whitespace()
        {
            /* whitespace:
             *  " " */

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

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

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