|
Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
|
Create and destroy ParserManager instances. More...
Functions | |
| ParserManager * | parser_manager_create (const ParserManagerConfig *config) |
| Create a new parser manager. | |
| void | parser_manager_destroy (ParserManager *mgr) |
| Destroy a parser manager and release all resources. | |
Create and destroy ParserManager instances.
| ParserManager * parser_manager_create | ( | const ParserManagerConfig * | config | ) |
#include <include/parser_manager.h>
Create a new parser manager.
| config | Configuration parameters. May be NULL for defaults. The config struct is copied internally; the caller's copy is not retained. |
| void parser_manager_destroy | ( | ParserManager * | mgr | ) |
#include <include/parser_manager.h>
Destroy a parser manager and release all resources.
All loaded plugins receive their destroy() callback. Active parse sessions that have pinned snapshots continue to function – the snapshots are reference-counted and will be freed when the last session releases them.
| mgr | Manager to destroy. Passing NULL is safe. |