Пример #1
0
 public arith_expression_sequence(arith_expression _arith_expression, arith_expression_sequence _arith_expression_sequence, pipe _pipe)
 {
     pipe             = _pipe;
     arith_expression = _arith_expression;
     self_arith_expression_sequence = _arith_expression_sequence;
     expression = self_arith_expression_sequence?.expression + pipe?.expression + arith_expression.expression;
 }
Пример #2
0
        private pipe Parse_pipe()
        {
            /* comma:
             *  "," */


            if (_index >= _tokens.Count())
            {
                return(null);
            }                                               // must be first line on any atom


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


            if (_result.is_pipe)
            {
                _index++;
                return(_result);
            }
            else
            {
                return(null);
            }
        }