webmcp

annotate framework/env/convert/__init.lua @ 202:eceb6f56e9ed

Use luaL_len and lua_gettable to read argument passed to json.array{...}
author jbe
date Mon Aug 25 20:00:01 2014 +0200 (2014-08-25)
parents 9fdfb27f8e67
children
rev   line source
jbe/bsw@0 1 convert._type_symbol_mappings = setmetatable({}, { __mode = "k" })
jbe/bsw@0 2
jbe/bsw@0 3 convert.register_type(atom.boolean, "boolean")
jbe/bsw@0 4 convert.register_type(atom.string, "string")
jbe/bsw@0 5 convert.register_type(atom.integer, "integer")
jbe/bsw@0 6 convert.register_type(atom.number, "number")
jbe/bsw@0 7 convert.register_type(atom.fraction, "fraction")
jbe/bsw@0 8 convert.register_type(atom.date, "date")
jbe/bsw@0 9 convert.register_type(atom.timestamp, "timestamp")
jbe/bsw@0 10 convert.register_type(atom.time, "time")

Impressum / About Us