summaryrefslogtreecommitdiff
path: root/src/parser/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/index.ts')
-rw-r--r--src/parser/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser/index.ts b/src/parser/index.ts
new file mode 100644
index 0000000..7831c8e
--- /dev/null
+++ b/src/parser/index.ts
@@ -0,0 +1,6 @@
+export * from './generate';
+export * from './parser';
+import * as peggy from './parser';
+
+export const peggyParse = (source: string): peggy.FunctionDefinition[] =>
+ peggy.parse(source);