Dervall / Piglet

An easier to use parsing and lexing tool that is configurable in fluent code without a pre-build step.
binarysculpting.com
MIT License
91 stars 11 forks source link

Single optional rule part for fluent configurations #40

Open Dervall opened 12 years ago

Dervall commented 12 years ago

There should be an option to make a single rule part optional when making fluent configurations. Currently you have to make an empty nothingness rule and make that a production of whatever you want to have optional. This is not very intuitive by any means.

We already have something similar when lists are declared. It would be totally cool if this could be made to work on single entities within a rule as well.