We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all,
Just starting to use this library to parse a custom file format, quite similiar to INI files.
I am not able to get right the most simple example.
This is the file contents
==abc zzz
And this is the parser
var lexerDefinition = lexer.MustSimple([]lexer.SimpleRule{ {Name: "Ident", Pattern: `[a-zA-Z][a-zA-Z_\d]*`}, }) var Parser = participle.MustBuild[Matadown]( participle.Lexer(lexerDefinition), ) type Matadown struct { Sections []*Section `@@*` } type Section struct { Title string `"==" @Ident` Content *Content `@@` } type Content struct { String string `@Ident` }
Getting this error
1:1: invalid input text "==abc\nzzz\n\n"
Any hint ?
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi all,
Just starting to use this library to parse a custom file format, quite similiar to INI files.
I am not able to get right the most simple example.
This is the file contents
And this is the parser
Getting this error
1:1: invalid input text "==abc\nzzz\n\n"
Any hint ?
Thanks
The text was updated successfully, but these errors were encountered: