Hi,
sorry for reporting yet another issue.
Whenever I try to access the result hash or the program exits, I get a
segmentation fault.
Here is the simple version of the grammar, the input string is in the
file attached. The grammar parses ok. When I use test data, it is ok.
When I use just the first ...<XProtocol{ ... } block, it is ok.
When I change <[brb]> to be amneasic (<.brb>, I get further, even to a
dump, yet still a segfault. Very annoying
Is this some stack size issue?
my $parse_simple =do {
use Regexp::Grammars;
Regexp::Grammars::set_context_width(50);
qr{ #<nocontext:>
<[simpler]>+ % <[char]>
<rule: brb> <br> (<[sc=char]>? <[bla=brb]>?)* </br>
<rule: simpler>
(<char>\<XProtocol>) #<debug: on>
<[brb]>
<token: char> [^{}]*
<token: br> \{
}xms;
};
Subject: | in.txt |
Message body is not shown because it is too large.
Subject: | out.txt |
Message body is not shown because it is too large.