Esempio n. 1
0
        private conditional Parse_conditional()
        {
            if (_index >= _tokens.Count())
            {
                return(null);
            }                                               // must be first line on any atom


            var _data   = _tokens[_index];
            var _result = new conditional(_data);


            if (_result.is_conditional)
            {
                _index++;
                return(_result);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
 public factor(conditional _conditional)
 {
     conditional = _conditional;
     expression  = conditional.expression;
 }