Skip to content

Commit 7e28f49

Browse files
committed
Synced with G4 grammar (Fixed bug with constraint assignment to parenthesis identifiers)
1 parent e1323d9 commit 7e28f49

File tree

6 files changed

+909
-758
lines changed

6 files changed

+909
-758
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@distributedlab/circom-parser",
33
"description": "Circom circuit parser built with ANTLR4",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"files": [

src/generated/CircomListener.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { TemplateBlockContext } from "./CircomParser";
2424
import { ComponentMainDeclarationContext } from "./CircomParser";
2525
import { PublicInputsListContext } from "./CircomParser";
2626
import { TemplateStmtContext } from "./CircomParser";
27+
import { ElementContext } from "./CircomParser";
2728
import { ForControlContext } from "./CircomParser";
2829
import { ForInitContext } from "./CircomParser";
2930
import { ForUpdateContext } from "./CircomParser";
@@ -304,6 +305,16 @@ export default class CircomListener extends ParseTreeListener {
304305
* @param ctx the parse tree
305306
*/
306307
exitTemplateStmt?: (ctx: TemplateStmtContext) => void;
308+
/**
309+
* Enter a parse tree produced by `CircomParser.element`.
310+
* @param ctx the parse tree
311+
*/
312+
enterElement?: (ctx: ElementContext) => void;
313+
/**
314+
* Exit a parse tree produced by `CircomParser.element`.
315+
* @param ctx the parse tree
316+
*/
317+
exitElement?: (ctx: ElementContext) => void;
307318
/**
308319
* Enter a parse tree produced by `CircomParser.forControl`.
309320
* @param ctx the parse tree

0 commit comments

Comments
 (0)