|
APG
… an ABNF Parser Generator
|
Header file for the semantic translation functions. More...

Go to the source code of this file.
Data Structures | |
| struct | semantic_udt |
| Generalized UDT for first-pass semantic processing. More... | |
| struct | semantic_op |
| Generalized opcode for first-pass semantic processing. More... | |
| struct | semantic_rule |
| Generalized rule for first-pass semantic processing. More... | |
| struct | semantic_data |
| User data passed to the AST translator for use by the AST callback functions. More... | |
Macros | |
| #define | RULENAME_MAX 256 |
Functions | |
| void | vSabnfGrammarAstCallbacks (void *vpParserCtx) |
| Set the callback functions for the AST translation of the semantic phase parse to opcodes. More... | |
| aint | uiFindRule (semantic_rule *spRules, aint uiRuleCount, const char *cpName, aint uiNameLength) |
| Find the index of the named rule in the rule list. More... | |
| aint | uiFindUdt (semantic_udt *spUdts, aint uiUdtCount, const char *cpName, aint uiNameLength) |
Header file for the semantic translation functions.
Definition in file semantics.h.
| #define RULENAME_MAX 256 |
< Rule and UDT names have a maximum size of 255 characters (plus a null term.)
Definition at line 37 of file semantics.h.
| aint uiFindRule | ( | semantic_rule * | spRules, |
| aint | uiRuleCount, | ||
| const char * | cpName, | ||
| aint | uiNameLength | ||
| ) |
Find the index of the named rule in the rule list.
Does a simple linear search.
| [in] | spRules | - the array of rules |
| [in] | uiRuleCount | - the number of rules |
| [in] | cpName | - pointer to the name to look for (not a null-terminated string) |
| [in] | uiNameLength | - the number of characters in the name |
Definition at line 160 of file semantics.c.
| aint uiFindUdt | ( | semantic_udt * | spUdts, |
| aint | uiUdtCount, | ||
| const char * | cpName, | ||
| aint | uiNameLength | ||
| ) |
Definition at line 172 of file semantics.c.
| void vSabnfGrammarAstCallbacks | ( | void * | vpAstCtx | ) |
Set the callback functions for the AST translation of the semantic phase parse to opcodes.
| vpAstCtx | Pointer to an AST context. |
Definition at line 740 of file semantic-callbacks.c.
1.8.17