[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: JSON module
- From: David Kolf <kolf@...>
- Date: Tue, 31 Aug 2010 08:41:29 +0200
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.