Mercurial Hosting > luan
comparison src/luan/modules/Rpc.luan @ 1280:781ec0a92bb5
add Boot.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 20 Dec 2018 13:38:16 -0700 |
parents | 198d6af7330a |
children | 8d95711f6615 |
comparison
equal
deleted
inserted
replaced
1279:323743a7f317 | 1280:781ec0a92bb5 |
---|---|
17 local error = Luan.error | 17 local error = Luan.error |
18 local set_metatable = Luan.set_metatable or error() | 18 local set_metatable = Luan.set_metatable or error() |
19 local try = Luan.try or error() | 19 local try = Luan.try or error() |
20 local ipairs = Luan.ipairs or error() | 20 local ipairs = Luan.ipairs or error() |
21 local type = Luan.type or error() | 21 local type = Luan.type or error() |
22 local Boot = require "luan:Boot.luan" | |
22 local Io = require "luan:Io.luan" | 23 local Io = require "luan:Io.luan" |
23 local Thread = require "luan:Thread.luan" | 24 local Thread = require "luan:Thread.luan" |
24 local Table = require "luan:Table.luan" | 25 local Table = require "luan:Table.luan" |
25 local java_to_table_deep = Table.java_to_table_deep or error() | 26 local java_to_table_deep = Table.java_to_table_deep or error() |
26 local unpack = Table.unpack or error() | 27 local unpack = Table.unpack or error() |
60 list[#list] = nil | 61 list[#list] = nil |
61 local type = list[i_in] | 62 local type = list[i_in] |
62 if type == "binary" then | 63 if type == "binary" then |
63 list[i_in] = JavaUtils.readAll(binary_in) | 64 list[i_in] = JavaUtils.readAll(binary_in) |
64 elseif type == "input" then | 65 elseif type == "input" then |
65 list[i_in] = IoLuan.LuanInput.new(binary_in).table() | 66 list[i_in] = Boot.new_LuanIn( IoLuan.LuanInput.new(binary_in) ) |
66 else | 67 else |
67 error(type) | 68 error(type) |
68 end | 69 end |
69 end | 70 end |
70 return unpack(list) | 71 return unpack(list) |