comparison src/luan/interp/LuanParser.java @ 51:28dfd91a816c

various small issues git-svn-id: https://luan-java.googlecode.com/svn/trunk@52 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 28 Dec 2012 20:43:06 +0000
parents 8ede219cd111
children f5b27ef14d73
comparison
equal deleted inserted replaced
50:272b6f1d7dac 51:28dfd91a816c
160 Spaces(), 160 Spaces(),
161 start.set(currentIndex()), 161 start.set(currentIndex()),
162 FirstOf( 162 FirstOf(
163 Sequence( 163 Sequence(
164 ExpList(), 164 ExpList(),
165 EOI, 165 push( new ReturnStmt( se(start.get()), (Expressions)pop() ) ),
166 push( new ReturnStmt( se(start.get()), (Expressions)pop() ) ) 166 push( newChunk(start.get()) ),
167 EOI
167 ), 168 ),
168 Sequence( 169 Sequence(
169 action( frame.isVarArg = true ), 170 action( frame.isVarArg = true ),
170 Block(), 171 Block(),
172 push( newChunk(start.get()) ),
171 EOI 173 EOI
172 ) 174 )
173 ), 175 )
174 push( newChunk(start.get()) )
175 ); 176 );
176 } 177 }
177 178
178 Rule Block() { 179 Rule Block() {
179 Var<List<Stmt>> stmts = new Var<List<Stmt>>(new ArrayList<Stmt>()); 180 Var<List<Stmt>> stmts = new Var<List<Stmt>>(new ArrayList<Stmt>());