UNPKG

solidity-antlr4

Version:

Solidity Lang Lexer and Parser by official ANTLR4 grammar

18 lines (17 loc) 381 B
import { BaseNodeUnion } from "../base.js"; export const Literal = class extends BaseNodeUnion { // type = 'Literal' as const; constructor(ctx, visitor) { super( ctx, [ ctx.stringLiteral(), ctx.numberLiteral(), ctx.booleanLiteral(), ctx.hexStringLiteral(), ctx.unicodeStringLiteral() ], visitor ); } };