UNPKG

solidity-antlr4

Version:

Solidity Lang Lexer and Parser by official ANTLR4 grammar

9 lines (8 loc) 285 B
import { BaseNodeString } from "../base.js"; export class YulLiteral extends BaseNodeString { type = "YulLiteral"; constructor(ctx, visitor) { super(ctx, visitor); this.name = ctx.yulBoolean() !== null ? ctx.yulBoolean().YulTrue() ? "true" : "false" : ctx.getText(); } }