Mercurial Hosting > luan
comparison src/luan/tools/WebServlet.java @ 124:f537ff5e511d
minor cleanup
git-svn-id: https://luan-java.googlecode.com/svn/trunk@125 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 06 Jun 2014 03:41:04 +0000 |
parents | b1e87f1bcc13 |
children | 0149bdf98fd8 |
comparison
equal
deleted
inserted
replaced
123:d7be9b3abf1a | 124:f537ff5e511d |
---|---|
25 | 25 |
26 protected LuanState luanState = null; | 26 protected LuanState luanState = null; |
27 | 27 |
28 protected LuanState newLuanState() throws LuanException { | 28 protected LuanState newLuanState() throws LuanException { |
29 LuanState luan = LuanCompiler.newLuanState(); | 29 LuanState luan = LuanCompiler.newLuanState(); |
30 luan.load(BasicLib.NAME,BasicLib.LOADER); | 30 BasicLib.load(luan); |
31 luan.load(PackageLib.NAME,PackageLib.LOADER); | 31 PackageLib.load(luan); |
32 luan.load(MathLib.NAME,MathLib.LOADER); | 32 MathLib.load(luan); |
33 luan.load(StringLib.NAME,StringLib.LOADER); | 33 StringLib.load(luan); |
34 luan.load(TableLib.NAME,TableLib.LOADER); | 34 TableLib.load(luan); |
35 luan.load(HtmlLib.NAME,HtmlLib.LOADER); | 35 HtmlLib.load(luan); |
36 return luan; | 36 return luan; |
37 } | 37 } |
38 | 38 |
39 @Override protected void service(HttpServletRequest request,HttpServletResponse response) | 39 @Override protected void service(HttpServletRequest request,HttpServletResponse response) |
40 throws ServletException, IOException | 40 throws ServletException, IOException |