Closed ellisonch closed 6 years ago
UTSL...
add -e to the nex call and add the function in your foo.nex:
// YOLO
func (yylex Lexer) Error(e string) {
fmt.Println("WE ERROR!!!")
panic(e)
}
This issue can be closed.
Closing because I think this is solved. If not please open a new issue.
As far as I can tell, there doesn't seem to be a way to change the
func (yylex Lexer) Error(e string)
function. This function gets called automatically from ago tool yacc
generated parser, so it would be nice to be able to customize it.