Commit 6d9c02ae authored by Russ Cox's avatar Russ Cox

6a, 8a: allow $(-1) for consistency with $1, $(1), $-1.

R=ken2
CC=golang-dev
https://golang.org/cl/5373074
parent 351daf87
......@@ -429,6 +429,12 @@ imm:
$$.type = D_FCONST;
$$.dval = $3;
}
| '$' '(' '-' LFCONST ')'
{
$$ = nullgen;
$$.type = D_FCONST;
$$.dval = -$4;
}
| '$' '-' LFCONST
{
$$ = nullgen;
......
......@@ -392,6 +392,12 @@ imm:
$$.type = D_FCONST;
$$.dval = $3;
}
| '$' '(' '-' LFCONST ')'
{
$$ = nullgen;
$$.type = D_FCONST;
$$.dval = -$4;
}
| '$' '-' LFCONST
{
$$ = nullgen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment