Example
Number sign list
sign + | -
list list bit | bit
bit 0 | 1
. Build attribute grammar that annotates Number with the value it represents
. Associate attributes with grammar symbols
symbol |
attributes |
Number |
value
|
sign |
negative
|
list |
position, value
|
bit |
position, value
|
|
|
|