Mercurial Hosting > luan
comparison src/luan/interp/LuaParser.java @ 30:8d8f4f5caef4
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@31 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 07 Dec 2012 20:22:19 +0000 |
parents | df923e5835b2 |
children | 5cf15507d77e |
comparison
equal
deleted
inserted
replaced
29:9bc66d09ea48 | 30:8d8f4f5caef4 |
---|---|
19 import luan.Lua; | 19 import luan.Lua; |
20 import luan.LuaNumber; | 20 import luan.LuaNumber; |
21 import luan.LuaState; | 21 import luan.LuaState; |
22 | 22 |
23 | 23 |
24 public class LuaParser extends BaseParser<Object> { | 24 class LuaParser extends BaseParser<Object> { |
25 | 25 |
26 static final class Frame { | 26 static final class Frame { |
27 final Frame parent; | 27 final Frame parent; |
28 final List<String> symbols = new ArrayList<String>(); | 28 final List<String> symbols = new ArrayList<String>(); |
29 int stackSize = 0; | 29 int stackSize = 0; |
103 frame.loops--; | 103 frame.loops--; |
104 return true; | 104 return true; |
105 } | 105 } |
106 | 106 |
107 | 107 |
108 public Rule Target() { | 108 Rule Target() { |
109 return Sequence( | 109 return Sequence( |
110 Spaces(), | 110 Spaces(), |
111 FirstOf( | 111 FirstOf( |
112 Sequence( ExpList(), EOI ), | 112 Sequence( ExpList(), EOI ), |
113 Sequence( | 113 Sequence( |