Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
Loading...
Searching...
No Matches
lime_compiler.h
Go to the documentation of this file.
1
15#ifndef LIME_COMPILER_H
16#define LIME_COMPILER_H
17
18#include <stddef.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24struct ParserSnapshot;
25
52int lime_compile_grammar_in_process(const char *grammar_text,
53 size_t len,
54 struct ParserSnapshot **out_snapshot,
55 char **error);
56
84int lime_compile_grammar_in_process_ex(const char *grammar_text,
85 size_t len,
86 struct ParserSnapshot **out_snapshot,
87 char **error,
88 int *out_nconflict);
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* LIME_COMPILER_H */
int lime_compile_grammar_in_process_ex(const char *grammar_text, size_t len, struct ParserSnapshot **out_snapshot, char **error, int *out_nconflict)
Like lime_compile_grammar_in_process, but also reports the number of LALR conflicts the compose resol...
int lime_compile_grammar_in_process(const char *grammar_text, size_t len, struct ParserSnapshot **out_snapshot, char **error)
Compile grammar text into a runtime ParserSnapshot, in-process.
Opaque snapshot handle.
Definition snapshot.h:177