private comma Parse_comma() { /* comma: * "," */ if (_index >= _tokens.Count()) { return(null); } // must be first line on any atom var _data = _tokens[_index]; var _result = new comma(_data); if (_result.is_comma) { _index++; return(_result); } else { return(null); } }
public Prefix Hello(Noun.hello hello, [Optional] comma comma) { // In this case we want to use the same greeting back, i.e. Hello->Hello, Hi->Hi, ... return(new Prefix { Original = hello.Text + ",", OptionalResponsePrefix = hello.Text + "," }); }
public parameter_sequence(arith_expression_sequence _arith_expression_sequence, parameter_sequence _self_parameter_sequence, comma _comma) { comma = _comma; arith_expression_sequence = _arith_expression_sequence; self_parameter_sequence = _self_parameter_sequence; expression = self_parameter_sequence?.expression + comma?.expression + arith_expression_sequence.expression /* expression = arith_expression.expression + comma?.expression + self_arith_expression_sequence?.expression*/; }