}
| /* value query */
GET_VALUE_TOK { PARSER_STATE->checkThatLogicIsSet(); }
- LPAREN_TOK termList[terms,expr] RPAREN_TOK
- { $cmd = new GetValueCommand(terms); }
+ ( LPAREN_TOK termList[terms,expr] RPAREN_TOK
+ { $cmd = new GetValueCommand(terms); }
+ | term[expr, expr2]
+ { PARSER_STATE->parseError("The get-value command expects a list of terms. Perhaps you forgot a pair of parentheses?"); } )
| /* get-assignment */
GET_ASSIGNMENT_TOK { PARSER_STATE->checkThatLogicIsSet(); }
{ cmd = new GetAssignmentCommand(); }