Parsing Expression Grammars

Events happening in the community are now at Drupal community events on www.drupal.org.
develcuy's picture

I want to give Parsing Expression Grammars to Drupal, it will need 2 deps: lua and phplua(plugin for php), is there any issue if I publish such module in drupal.org? will be lua code mainly because I want to include examples for tutorial and perhaps build some api around lua.

If you wonder what is Parssing Expression Grammars, it is a replacement for regular expressions.

Comments

Take a look at Grammar Parser

rfay's picture

You should probably chat with solotandem, maintainer of Grammar Parser about common ground you may have. That's a higher-level parser than regex, but still might be some common ground.

For licensing and third-party inclusions, please see http://drupal.org/licensing/faq. In general, third-party products are not checked into the CVS repository, but there are exceptions. (And I can't remember where the page on this is) Of course they HAVE to be GPL to be checked in.

3th party apart

develcuy's picture

Lua and phplua have to be installed separately, the module will just ask for an instance of the parser and that is all. I think that grammar_parser is amazing, but lua's PEG is so quick and that is my main reason to do all this stuff.

--
[develCuy](http://steemit.com/@develcuy) on steemit

not sure

marvil07's picture

I have never tried Parsing Expression Grammars, but seems like you have mainly practical reasons to do use them.

What I would suggest is that if you are willing to use them instead of regex, which is a general propose tool, maybe is not a good idea. I mean, if you are using php, try to do things in the php way sounds like a good idea for me.

In the other hand, as I could see phplua let you add lua code inside php code(I suppose Parsing Expression Grammars are part of the lua syntax), so I am wondering what the module is going to do.

If the propose is really bring Parsing Expression Grammars to drupal, inherently php, then I see a a better approach to write a php extension to let support them on php.

Contributed Module Ideas

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: