Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5b0977c

Browse files
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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /