Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
Loading...
Searching...
No Matches
Manager Lifecycle

Create and destroy ParserManager instances. More...

Functions

ParserManagerparser_manager_create (const ParserManagerConfig *config)
 Create a new parser manager.
 
void parser_manager_destroy (ParserManager *mgr)
 Destroy a parser manager and release all resources.
 

Detailed Description

Create and destroy ParserManager instances.

Function Documentation

◆ parser_manager_create()

ParserManager * parser_manager_create ( const ParserManagerConfig config)

#include <include/parser_manager.h>

Create a new parser manager.

Parameters
configConfiguration parameters. May be NULL for defaults. The config struct is copied internally; the caller's copy is not retained.
Returns
New ParserManager, or NULL on allocation failure.
See also
parser_manager_destroy()

◆ parser_manager_destroy()

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.

Parameters
mgrManager to destroy. Passing NULL is safe.
See also
parser_manager_create()