summaryrefslogtreecommitdiff
path: root/test/parser.spec.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-02-23 17:27:16 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-02-23 17:27:16 -0700
commite8e9ee18f29b2557fdc514c4322f5446484c4d58 (patch)
tree1d44fde6ca06f4c377d5cbf3d5ec9b31746ef012 /test/parser.spec.ts
parentd0d6aae1e56428f597f69f5c9cfb261afe671f5d (diff)
downloadcps-interpreter-e8e9ee18f29b2557fdc514c4322f5446484c4d58.tar.gz
cps-interpreter-e8e9ee18f29b2557fdc514c4322f5446484c4d58.zip
simple parser
Diffstat (limited to 'test/parser.spec.ts')
-rw-r--r--test/parser.spec.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/parser.spec.ts b/test/parser.spec.ts
new file mode 100644
index 0000000..e174383
--- /dev/null
+++ b/test/parser.spec.ts
@@ -0,0 +1,7 @@
+import { expect, test } from 'bun:test';
+import { TestPrograms } from './programs';
+import { peggyParse } from '@/parser';
+
+test('Primitive Operations', async () => {
+ const ast = peggyParse(await TestPrograms.AddOneThree);
+});