Hi list,
I'm a wanna-be-contributor having (almost) almost no clue about perl
sources.
I'm also not-native-speaker so sometimes I may use wording that has
different meanings as expected.
I noticed a few "complaints" about perly.y (including Sawyer's talk on CoC).
As far as it correlates with my other work I started with an attempt to do
some refactoring / beautification of perly.y, starting with pull request
#18036.
My goal is to make the whole parser (including actions) declarative so such
declaration can be used to generate also supporting tools (eg syntax
highlighting in emacs)
I believe bison's GLR parser can help with some technical problems, for
example it provides trick to conditionally include/exclude alternative
rule, for example (using snippet from LeoNerd's branch):
| %?{ FEATURE_FINALLY_BLOCK_IS_ENABLED } FINALLY mblock
I think this feature should allow perl5 / perl7 / perlX specific rules in
single grammar simplifying evolution and maintenance. Drawback is, perl
doesn't use bison parser, only it's tables, so there is some larger
refactoring pending.
So I'd like to ask you about your opinion and goals first to avoid wasting
time.
Best regards,
Brano
I'm a wanna-be-contributor having (almost) almost no clue about perl
sources.
I'm also not-native-speaker so sometimes I may use wording that has
different meanings as expected.
I noticed a few "complaints" about perly.y (including Sawyer's talk on CoC).
As far as it correlates with my other work I started with an attempt to do
some refactoring / beautification of perly.y, starting with pull request
#18036.
My goal is to make the whole parser (including actions) declarative so such
declaration can be used to generate also supporting tools (eg syntax
highlighting in emacs)
I believe bison's GLR parser can help with some technical problems, for
example it provides trick to conditionally include/exclude alternative
rule, for example (using snippet from LeoNerd's branch):
| %?{ FEATURE_FINALLY_BLOCK_IS_ENABLED } FINALLY mblock
I think this feature should allow perl5 / perl7 / perlX specific rules in
single grammar simplifying evolution and maintenance. Drawback is, perl
doesn't use bison parser, only it's tables, so there is some larger
refactoring pending.
So I'd like to ask you about your opinion and goals first to avoid wasting
time.
Best regards,
Brano