comparison src/luan/parser/Parser.java @ 147:cc3a0578edac

fix Io.reverse_pickle git-svn-id: https://luan-java.googlecode.com/svn/trunk@148 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sun, 15 Jun 2014 15:41:36 +0000
parents 735708619119
children
comparison
equal deleted inserted replaced
146:0517a4a7fcc5 147:cc3a0578edac
26 if( iHigh < stack[frame] ) 26 if( iHigh < stack[frame] )
27 iHigh = stack[frame]; 27 iHigh = stack[frame];
28 } 28 }
29 29
30 public int begin() { 30 public int begin() {
31 frame++;
31 if( frame == stack.length ) { 32 if( frame == stack.length ) {
32 int[] a = new int[2*frame]; 33 int[] a = new int[2*frame];
33 System.arraycopy(stack,0,a,0,frame); 34 System.arraycopy(stack,0,a,0,frame);
34 stack = a; 35 stack = a;
35 } 36 }
36 frame++;
37 stack[frame] = stack[frame-1]; 37 stack[frame] = stack[frame-1];
38 return i(); 38 return i();
39 } 39 }
40 40
41 public void rollback() { 41 public void rollback() {