Hi Lukas,
Thanks for the detailed analysis and insight. It was very helpful.
I have rewritten the grammar based on your inputs. And ran into same issue.
After some thinking I identified the issue. My grammar accepts and parses
only one statement!
I modified grammar in the following manner. Ag
Good answer, Lukas, thanks! -- jeffrey
Sent with ProtonMail secure email.
--- Original Message ---
On Saturday, April 30th, 2022 at 4:27 AM, Lukas Atkinson
wrote:
> Your grammar does not allow the list in that location. Here is the
> relevant excerpt:
>
> ```
> :start ::= language
Your grammar does not allow the list in that location. Here is the
relevant excerpt:
```
:start ::= language
#
# include begin
language ::= if_statement action_statements action => ifAction
| action_statements action => verbAction
| ('Lis
I started writing a simple parser using Marpa.Made some progress and
however as I started adding new rule, my parser started failing.
use strict;
use warnings;
use warnings qw(FATAL utf8); # Fatalize encoding glitches.
use feature 'say' ;
#use Data::Dumper;
use Data::Dumper::Concise;
#use Log::Ha