lua-users home
lua-l archive

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


Ed schrieb:
> you plan to leave "pure Lua" option?

LPeg would be optional, the pure Lua functions stay. In my current test
version you would either have to load the module using
  json = require "dkjson".use_lpeg()
or
  json = require "dkjson"
  pcall (json.use_lpeg) -- in case it is not known whether LPeg exists
if you want to use the LPeg module. Otherwise the pure Lua functions
would stay active.