%token decode_base64KeyWord
%token encvalue_unicharKeyWord
%token decvalue_unicharKeyWord
+ %token any2unistrKeyWord
/* Multi-character operators */
}
| DisconnectKeyword SingleOrMultiConnectionSpec
{
- if ($2.compref1 && $2.portref1 && $2.compref1 && $2.compref2) {
+ if ($2.portref1 && $2.portref2 && $2.compref1 && $2.compref2) {
$$ = new Statement(Statement::S_DISCONNECT,
$2.compref1, $2.portref1, $2.compref2, $2.portref2);
} else {
$$ = new Value(Value::OPTYPE_LOG2STR, new LogArguments());
$$->set_location(infile, @$);
}
+ | any2unistrKeyWord '(' LogItemList optError ')'
+ {
+ if ($3->get_nof_logargs() != 1) {
+ Location loc(infile, @1);
+ loc.error("The any2unistr function takes exactly one argument, not %lu.",
+ $3->get_nof_logargs());
+ delete $3;
+ $$ = new Value(Value::OPTYPE_ANY2UNISTR, new LogArguments());
+ $$->set_location(infile, @$);
+ } else {
+ $$ = new Value(Value::OPTYPE_ANY2UNISTR, $3);
+ $$->set_location(infile, @$);
+ }
+ }
| testcasenameKeyword '(' ')'
{
$$ = new Value(Value::OPTYPE_TESTCASENAME);