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

Query loaded plugin information. More...

Data Structures

struct  LimePluginInfo
 Plugin information returned by enumeration functions. More...
 

Functions

LimePluginHandle parser_manager_find_by_name (const ParserManager *mgr, const char *name)
 Look up a plugin by name.
 
ParserManagerStatus parser_manager_get_plugin_info (const ParserManager *mgr, LimePluginHandle handle, LimePluginInfo *info)
 Get information about a specific plugin.
 
ParserManagerStatus parser_manager_list_plugins (const ParserManager *mgr, LimePluginInfo *infos, uint32_t max_count, uint32_t *actual_count)
 Enumerate all loaded plugins.
 
uint32_t parser_manager_plugin_count (const ParserManager *mgr)
 Get the number of loaded plugins.
 

Detailed Description

Query loaded plugin information.

Function Documentation

◆ parser_manager_find_by_name()

LimePluginHandle parser_manager_find_by_name ( const ParserManager mgr,
const char *  name 
)

#include <include/parser_manager.h>

Look up a plugin by name.

Parameters
mgrThe parser manager.
namePlugin name to search for.
Returns
Handle of the matching plugin, or LIME_PLUGIN_HANDLE_INVALID if not found.

◆ parser_manager_get_plugin_info()

ParserManagerStatus parser_manager_get_plugin_info ( const ParserManager mgr,
LimePluginHandle  handle,
LimePluginInfo info 
)

#include <include/parser_manager.h>

Get information about a specific plugin.

Parameters
mgrThe parser manager.
handleHandle of the plugin to query.
[out]infoFilled with plugin information on success.
Returns
PM_OK on success, or PM_ERR_PLUGIN_NOT_FOUND.

◆ parser_manager_list_plugins()

ParserManagerStatus parser_manager_list_plugins ( const ParserManager mgr,
LimePluginInfo infos,
uint32_t  max_count,
uint32_t *  actual_count 
)

#include <include/parser_manager.h>

Enumerate all loaded plugins.

Fills the infos array with up to max_count entries.

Parameters
mgrThe parser manager.
[out]infosArray to fill with plugin information.
max_countMaximum entries to write.
[out]actual_countReceives the total number of loaded plugins. If greater than max_count, some entries were omitted.
Returns
PM_OK on success.

◆ parser_manager_plugin_count()

uint32_t parser_manager_plugin_count ( const ParserManager mgr)

#include <include/parser_manager.h>

Get the number of loaded plugins.

Parameters
mgrThe parser manager.
Returns
Number of plugins currently loaded.