lua-users home
lua-l archive

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

Am 27.03.2017 um 12:25 schrieb Scott Morgan:
Apparently Ruby's new release has added a new 'absent operator' to it's
regex engine.

Based on some academic paper (linked in article, but in Japanese), it's
supposed to help in certain cases matching things that are awkward or
impossible without (C style comments '/* ... */' is one example[0]).
It's a bit subtle in it's behaviour and uses.

Worth considering for Lua's pattern match system?


[0] That is '/* okay */' but avoiding '/* wrong */ */'

For all that pattern matching stuff we can use lpeg. Why implement some
new regex features that bloat the lua library?