lua-users home
lua-l archive

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


>   Thanks for the confirmation.  I'm going to have to rethink my approach.

If that indeed is the culprit, you can still build a grammar in LPeg.
You can build it piecemeal if you want:

+ local G = {}
  ...
- local P = <some pattern>
+ G.P = <some pattern>
+ P = lpeg.V"P"
  ...
+ G[1] = final_pattern
+ final_pattern = lpeg.P(G)

-- Roberto