Tags: alecthomas/participle
Tags
fix: union elements that were pointers would panic Fixes #255
Simplify error handling. Expose participle.ParseError and lexer.Error, remove some redundant functions.
Genericise the parser. `Build(&Grammar{})` becomes `Build[Grammar]()` and `err = parser.Parse(filename, &grammar)` becomes `grammar, err := parser.Parse(filename)`.
Genericise the parser. `Build(&Grammar{})` becomes `Build[Grammar]()` and `err = parser.Parse(filename, &grammar)` becomes `grammar, err := parser.Parse(filename)`.
document parameter "filename" for the Parser methods
document parameter "filename" for the Parser methods
PreviousNext