summaryrefslogtreecommitdiff
path: root/src/parser/index.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-02-23 16:46:10 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-02-23 17:04:54 -0700
commitd0d6aae1e56428f597f69f5c9cfb261afe671f5d (patch)
treeef1d572f2bda148ef1d13602b6b4117be8e18aa4 /src/parser/index.ts
downloadcps-interpreter-d0d6aae1e56428f597f69f5c9cfb261afe671f5d.tar.gz
cps-interpreter-d0d6aae1e56428f597f69f5c9cfb261afe671f5d.zip
initial parser
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);