1 | import * as frontend from 'llparse-frontend';
|
2 | import source = frontend.source;
|
3 | import { ICompilerOptions, ICompilerResult } from './compiler';
|
4 | export { source, ICompilerOptions, ICompilerResult };
|
5 |
|
6 |
|
7 |
|
8 | export declare class LLParse extends source.Builder {
|
9 | private readonly prefix;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | constructor(prefix?: string);
|
27 | /**
|
28 | * Compile LLParse graph to the bitcode and C headers
|
29 | *
|
30 | * @param root Root node of the parse graph (see `.node()`)
|
31 | * @param options Compiler options.
|
32 | */
|
33 | build(root: source.node.Node, options?: ICompilerOptions): ICompilerResult;
|
34 | }
|