|
Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
|
Notification callback for grammar context transitions. More...
Typedefs | |
| typedef bool(* | ContextSwitchCallback) (GrammarMode prev_mode, GrammarMode new_mode, void *user_data) |
| Called when a context switch occurs. | |
Notification callback for grammar context transitions.
| typedef bool(* ContextSwitchCallback) (GrammarMode prev_mode, GrammarMode new_mode, void *user_data) |
#include <include/grammar_context.h>
Called when a context switch occurs.
Allows the application to save/restore parser state across grammar boundaries.
| prev_mode | Mode being left. |
| new_mode | Mode being entered. |
| user_data | Pointer registered with grammar_context_set_switch_callback(). |
| true | Allow the switch. |
| false | Veto the switch (context remains unchanged). |
Definition at line 172 of file grammar_context.h.