Support foo.bar in constant expressions
This commit is contained in:
parent
98e1251772
commit
e03ef3ecb6
3 changed files with 11 additions and 2 deletions
|
|
@ -6521,12 +6521,10 @@ exprmem : ID ARROW ID {
|
|||
$$ = $1;
|
||||
Printf($$.val, "->%s", $3);
|
||||
}
|
||||
/* This generates a shift-reduce
|
||||
| ID PERIOD ID {
|
||||
$$.val = NewStringf("%s.%s", $1, $3);
|
||||
$$.type = 0;
|
||||
}
|
||||
*/
|
||||
| exprmem PERIOD ID {
|
||||
$$ = $1;
|
||||
Printf($$.val, ".%s", $3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue