APG
… an ABNF Parser Generator
|
Determines each rule's recursive attributes – left, nested, right and cyclic – and non-recursive attributes – empty and finite. More...
Go to the source code of this file.
Macros | |
#define | TRACE_RULE_OPEN(x, n) |
#define | TRACE_RULE_CLOSE(x, n, a) |
#define | TRACE_OPCODE_OPEN(x, o) |
#define | TRACE_PRINT_ATTRS(x, t) |
#define | TRACE_OPCODE_CLOSE(x, o, a) |
Functions | |
void | vRuleAttributes (attrs_ctx *spAtt) |
Computes the attributes of each rule in the grammar. More... | |
Determines each rule's recursive attributes – left, nested, right and cyclic – and non-recursive attributes – empty and finite.
Definition in file rule-attributes.c.
#define TRACE_OPCODE_CLOSE | ( | x, | |
o, | |||
a | |||
) |
Definition at line 84 of file rule-attributes.c.
#define TRACE_OPCODE_OPEN | ( | x, | |
o | |||
) |
Definition at line 82 of file rule-attributes.c.
#define TRACE_PRINT_ATTRS | ( | x, | |
t | |||
) |
Definition at line 83 of file rule-attributes.c.
#define TRACE_RULE_CLOSE | ( | x, | |
n, | |||
a | |||
) |
Displays the rule name when it is opened.
x | - the attribute component context handle |
n | - the rule name |
a | - pointer to the computed attributes structure |
Definition at line 81 of file rule-attributes.c.
#define TRACE_RULE_OPEN | ( | x, | |
n | |||
) |
Displays the rule name when it is opened.
x | - the attribute component context handle |
n | - the rule name |
TRACE_ATTRIBUTES Uncomment, or otherwise define this macro to turn on tracing of the attributes computations. Displays the Single-Expansion Parse Tree for each rule.
Definition at line 80 of file rule-attributes.c.
void vRuleAttributes | ( | attrs_ctx * | spAtt | ) |
Computes the attributes of each rule in the grammar.
Attributes:
spAtt | Context pointer to the attributes object. |
Definition at line 112 of file rule-attributes.c.