-- Code for main.lua to run code embedded in a page of the s8-media swiki
-- Note that this code will load snapshot and frameworks from local
-- folder in your device, so it is required a folder at /m8n/
-- containing the files that can be downloaded from U8 service
local m8n = Lib.Media.FileSystem.File.documentsDirectory.nativePath.."/m8n/"
--m8n="C:/C/lua/m8n/"
dofile(m8n.."s8.snapshot.lua")
dofile(m8n.."LuaStudio.st.lua")
dofile(m8n.."LuaStudioSamples.st.lua")
dofile(m8n.."swiki.st.lua")
dofile(m8n.."swikiStudio.st.lua")
print(("'3+4=',(3+4)"):evaluate())
code=[[
self print: 'Lib sys version=',Lib sys version!
SwikiCodeRobot @> 716 "evaluate the code in swiki page number 716"!
]]
code:fileIn() |