UNPKG

@stordata/grammars

Version:

A collection of ANTLR grammars used at Stordata. This project exists so that we can package the grammars (and various utilities) as a CommonJS module. The `antlr4` Javascript runtime is only available as an ES module at the time of writing.

8 lines (5 loc) 160 B
import { ParseTreeWalker } from 'antlr4'; export default function walk(tree, listener) { ParseTreeWalker.DEFAULT.walk(listener, tree); return listener; }