Skip to content

Commit

Permalink
Added .Walk() method to Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex committed Apr 9, 2021
1 parent 60e6bd3 commit 80c278e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit 80c278e

Please sign in to comment.