|
librdesc
|
nonterminal (syntatic variable) object for context-free grammar More...
#include <rdesc.h>
Public Attributes | |
| uint32_t | _pad: 1 |
| uint32_t | id: 31 |
| uint16_t | child_count |
| uint16_t | variant |
| The production rule variant being parsed. | |
| struct rdesc_node ** | children |
nonterminal (syntatic variable) object for context-free grammar
| uint32_t rdesc_nonterminal::_pad |
padding for symbol type in node struct
| uint16_t rdesc_nonterminal::child_count |
number of child ndes
| struct rdesc_node** rdesc_nonterminal::children |
child nodes
| uint32_t rdesc_nonterminal::id |
nonterminal identifier
| uint16_t rdesc_nonterminal::variant |
The production rule variant being parsed.
This field is for the internal use of the rdesc_parser. When the backtracking parser tries different production rules for a non-terminal, it increments this index to track which variant it is currently attempting. This is purely parse-time data.