lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I wrote Luma against a pretty old version of LPEG, 0.7. I have updated
> luma.re to work with LPEG 0.10, forking LPEG's re.lua. The changes are
> simple:
> 
> * allow _ as a non-terminal name
> * search for non-terminals in the definitions first (instead of
> requiring definitions to be prepended by %)
> 
> These changes make writing and composing grammars much more convenient.

Would you mind explaining how these changes make writing and composing
grammars *much* more convenient?

(I wonder whether it is worth forking re.lua only because of what looks
like cosmetic details.)

-- Roberto