lua-users home
lua-l archive

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



On Aug 29, 2018, at 1:21 PM, joy mondal <joykrishnamondal@gmail.com> wrote:

I have trying to understand LPEG to help me build a full programming language, I really like moonscript and want to build something similar, I have a very basic question involving LPEG.

https://gist.github.com/randrews/5eab368f35ab8e774433#gistcomment-2692302

Regarding the gist question of what it meant that LPeg does no backtracking,
this thread might help:

http://www.gammon.com.au/forum/bbshowpost.php?id=14149&page=1

The thread discuss how to turn Lua pattern "(.*)and(.*)", with backtracking
ability, into LPeg, which does not.

First post also had a link of Nick Gammon's LPeg tutorial.