Closed midirhee12 closed 2 years ago
if you are loading the rule from file.abnf, make sure that the rule is terminated with a CRLF. Rule.from_file expects the file contents to be a rulelist as defined in RFC 5234.
Hmm, I am on linux, so that could be possible. I thought I had converted LF to CRLF properly. Let me check.
Ah, thanks. Yeah, I had my editor (neovim) rewriting it after save. I should have had looked at that first.
For other vim or neovim users, just set ff=dos
, and you'll be good to go.
After attempting to parse the following abnf:
and running the following code:
I got the following error: