Skip to content

Commit 5b0977c

Browse files
committedDec 13, 2021
subparse expressions - addresses #20
1 parent 8326bc8 commit 5b0977c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎solidity_parser/parser.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ def visitExpression(self, ctx):
614614
TrueExpression=self.visit(ctx.getChild(2)),
615615
FalseExpression=self.visit(ctx.getChild(4)))
616616

617-
raise Exception("unrecognized expression")
617+
return self.visit(list(ctx.getChildren()))
618+
618619

619620
def visitStateVariableDeclaration(self, ctx):
620621
type = self.visit(ctx.typeName())

0 commit comments

Comments
 (0)
Failed to load comments.