summaryrefslogtreecommitdiff
path: root/src/interpreter/parser.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-04 16:31:27 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-04 16:31:27 -0700
commitd74523d15d37a1809a797beda962c957fba181b2 (patch)
treef5a7e7866940e477602249da8191d75988784ee7 /src/interpreter/parser.ts
parentf4ad269f8b9f9b0bfcc60bb2584316c3fdd10d10 (diff)
downloadthe-abstraction-engine-d74523d15d37a1809a797beda962c957fba181b2.tar.gz
the-abstraction-engine-d74523d15d37a1809a797beda962c957fba181b2.zip
checkpoint
Diffstat (limited to 'src/interpreter/parser.ts')
-rw-r--r--src/interpreter/parser.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interpreter/parser.ts b/src/interpreter/parser.ts
index ea07796..5e3be0f 100644
--- a/src/interpreter/parser.ts
+++ b/src/interpreter/parser.ts
@@ -30,6 +30,6 @@ export const isVariable = (term: LambdaTerm): term is Variable => {
return typeof term === "string";
};
-export const parse = (term: string) => {
- return peggyParser.parse(term, { library: true });
+export const parse = (term: string, library = false) => {
+ return peggyParser.parse(term, { peg$library: library });
};