1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-04 10:35:08 +02:00

Added .Walk() method to Parser

This commit is contained in:
Tim Voronov 2021-04-08 23:37:16 -04:00
parent 60e6bd39bb
commit 80c278ec6c

View File

@ -34,3 +34,7 @@ func (p *Parser) AddErrorListener(listener antlr.ErrorListener) {
func (p *Parser) Visit(visitor fql.FqlParserVisitor) interface{} {
return visitor.VisitProgram(p.tree.Program().(*fql.ProgramContext))
}
func (p *Parser) Walk(listener fql.FqlParserListener) {
antlr.ParseTreeWalkerDefault.Walk(listener, p.tree.Program())
}