Skip to content

Commit

Permalink
Update src/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Chystiakov <[email protected]>
  • Loading branch information
KyrylR and Arvolear authored Nov 21, 2024
1 parent e643528 commit 3427928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ExtendedCircomParser } from "./ExtendedCircomParser";
export function getCircomParser(source: string): ExtendedCircomParser {
let inputStream: antlr4.CharStream;
let fileIdentifier = "Built from source";

if (fs.existsSync(source)) {
inputStream = antlr4.CharStreams.fromPathSync(source, "utf8");
fileIdentifier = source;
Expand Down

0 comments on commit 3427928

Please sign in to comment.