|
Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
|
Core public API for the Lime Parser library. More...
#include <stdbool.h>Go to the source code of this file.
Functions | |
| void | lemon_extension_registry_destroy (void) |
| Destroy the global extension registry. | |
| bool | lemon_extension_registry_init (void) |
| Initialize the global extension registry. | |
| const char * | lemon_parser_version (void) |
| Return the Lime parser library version string. | |
| ParserSnapshot * | lemon_snapshot_acquire (ParserSnapshot *snap) |
| Acquire a reference to a snapshot. | |
| ParserSnapshot * | lemon_snapshot_create (const char *grammar_file, char **error) |
| Create a base snapshot by parsing a grammar file. | |
| void | lemon_snapshot_release (ParserSnapshot *snap) |
| Release a snapshot reference. | |
| bool | lime_jit_available (void) |
| Check whether JIT compilation support is available at runtime. | |
| int | lime_jit_compile (ParserSnapshot *snap) |
| Compile and attach JIT code to a snapshot's action tables. | |
| ParseContext * | parse_begin (ParserSnapshot *snap) |
| Begin a parse session pinned to a snapshot. | |
| void | parse_end (ParseContext *ctx) |
| End the parse session. | |
| ParserSnapshot * | parse_get_snapshot (ParseContext *ctx) |
| Return the snapshot pinned by this context. | |
| int | parse_token (ParseContext *ctx, int token_code, void *token_value, int location) |
| Feed a token to the parser. | |
Core public API for the Lime Parser library.
This is the main header for consumers of the Lime runtime library. It provides:
Definition in file parser.h.
| const char * lemon_parser_version | ( | void | ) |
Return the Lime parser library version string.