You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.
When using
func (p *Parser) Parse(text string)
, a rule that does not match the grammar exits the program with status 1. This is an example:{"lexical":"error","line":"4","msg":"Line 4: illegal regex modifier ())"}exit status 1
It would be great if the method had this signature instead:
func (p *Parser) Parse(text string) error
If we could pass errors from the lexer up to this method, maybe we can ignore rules that do not compile without exiting the application.
The text was updated successfully, but these errors were encountered: