Mercurial Hosting > luan
view src/luan/modules/Parsers.luan @ 794:f16c77ef0f4f
add Parsers.json_string and Thread.global
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 05 Sep 2016 16:08:00 -0600 |
parents | 1a68fc55a80c |
children | bae2d0c2576c |
line wrap: on
line source
java() local BBCode = require "java:luan.modules.parsers.BBCode" local Csv = require "java:luan.modules.parsers.Csv" local Theme = require "java:luan.modules.parsers.Theme" local Json = require "java:luan.modules.parsers.Json" local M = {} M.bbcode_to_html = BBCode.toHtml M.bbcode_to_text = BBCode.toText M.csv_to_list = Csv.toList M.json_parse = Json.parse -- converts json string to luan object M.json_string = Json.toString -- converts luan object to json string M.theme_to_luan = Theme.toLuan return M