|Problems? Is your data what you think it is?|
[Marpa::R2] Help with EBNF Grammar Formattingby three18ti (Scribe)
|on Nov 10, 2013 at 00:40 UTC||Need Help??|
three18ti has asked for the
wisdom of the Perl Monks concerning the following question:
We have a sudoers file that is a mess. I'm attempting to parse it out, and after a few attempts to basically roll my own parser, I found Marpa. I've read through the tutorial, and I thought I understood, so I build my grammar spec based on the Sudoers Manual... I was getting errors so I am attempting to break down my grammar into little pieces and build the grammar back up to the full spec.
I'm definitely missing something because I don't see anything wrong, but I'm getting an error...
Here's my small sample code:
The error I get is:
This seems to indicate the error is in the line:
rewriting the Alias definition:
Returns a new error:
So I'm thinking the problem lies in the second iteration of "User_Alias" i.e.: (':' User_Alias)* ... I'm just not sure what the problem is.
I appreciate any thoughts or assistance.