Skip to content

Commit 497d12a

Browse files
committed
Accept boolean literals in assembly
1 parent 123b350 commit 497d12a

File tree

6 files changed

+602
-546
lines changed

6 files changed

+602
-546
lines changed

antlr

src/ASTBuilder.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,6 +1709,15 @@ export class ASTBuilder
17091709
return this._addMeta(node, ctx)
17101710
}
17111711

1712+
if (ctx.BooleanLiteral()) {
1713+
const node: AST.BooleanLiteral = {
1714+
type: 'BooleanLiteral',
1715+
value: this._toText(ctx.BooleanLiteral()!) === 'true',
1716+
}
1717+
1718+
return this._addMeta(node, ctx);
1719+
}
1720+
17121721
if (ctx.DecimalNumber()) {
17131722
const node: AST.DecimalNumber = {
17141723
type: 'DecimalNumber',

src/antlr/Solidity.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)