comparison src/luan/interp/LuaParser.java @ 26:409871b33355

CmdLine varArgs git-svn-id: https://luan-java.googlecode.com/svn/trunk@27 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 06 Dec 2012 10:17:27 +0000
parents 0e406bd9ac7b
children df923e5835b2
comparison
equal deleted inserted replaced
25:0e406bd9ac7b 26:409871b33355
102 return Sequence( 102 return Sequence(
103 Spaces(), 103 Spaces(),
104 FirstOf( 104 FirstOf(
105 Sequence( ExpList(), EOI ), 105 Sequence( ExpList(), EOI ),
106 Sequence( 106 Sequence(
107 action( frame.isVarArg = true ),
107 Block(), 108 Block(),
108 EOI, 109 EOI,
109 push( new Chunk( (Stmt)pop(), frame.stackSize, 0, false ) ) 110 push( new Chunk( (Stmt)pop(), frame.stackSize, 0, frame.isVarArg ) )
110 ) 111 )
111 ) 112 )
112 ); 113 );
113 } 114 }
114 115