mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
symbols: check the previous commit
* tests/input.at (Symbol declarations): New.
This commit is contained in:
@@ -75,9 +75,9 @@ skeletons.
|
||||
|
||||
## Symbols
|
||||
|
||||
In order to unify the handling of the various aspects of symbols
|
||||
(tag, type_name, whether terminal, etc.), bison.exe defines one
|
||||
macro per (token, field), where field can has_id, id, etc.: see
|
||||
In order to unify the handling of the various aspects of symbols (tag, type
|
||||
name, whether terminal, etc.), bison.exe defines one macro per (token,
|
||||
field), where field can `has_id`, `id`, etc.: see
|
||||
src/output.c:prepare_symbols_definitions().
|
||||
|
||||
The various FIELDS are:
|
||||
@@ -94,7 +94,8 @@ The various FIELDS are:
|
||||
- is_token: 0 or 1
|
||||
Whether this is a terminal symbol.
|
||||
- number: integer
|
||||
The internalized number (used after yytranslate).
|
||||
The internalized number (used after yytranslate). This is the same
|
||||
number that serves as key b4_symbol(NUM, FIELD).
|
||||
- has_type: 0, 1
|
||||
Whether has a semantic value.
|
||||
- type_tag: string
|
||||
|
||||
Reference in New Issue
Block a user