// Path: engine/hu/mentlerd/hybrid/LuaException.java
// public class LuaException extends RuntimeException{
// 	private static final long serialVersionUID = -8214311557059032574L;
// 
// 	private Object luaCause;
// 	
// 	public LuaException( String message ) {
// 		super( message );
// 	}
// 
// 	public LuaException( String message, Object cause ){
// 		super( message );
// 		this.luaCause = cause;
// 	}
// 
// 	public LuaException( Throwable cause ){
// 		super(cause);
// 	}
// 	
// 	public Object getLuaCause(){
// 		if ( luaCause == null )
// 			return getMessage();
// 		
// 		return luaCause;
// 	}
// }
// 
// Path: engine/hu/mentlerd/hybrid/Prototype.java
// public final class Prototype {
// 	
// 	public static class LocalVar {
// 		public String name;
// 		
// 		public int start;
// 		public int end;
// 		
// 		public LocalVar(String name) {
// 			this.name = name;
// 		}
// 		public LocalVar(String name, int start, int end){
// 			this.name = name;
// 					
// 			this.start = start;
// 			this.end   = end;
// 		}
// 	}
// 	
// 	public int[] code;
// 
// 	public Object[] constants;
// 	public Prototype[] prototypes;
// 	
// 	public int numParams;
// 	public boolean isVararg;
// 
// 	public int numUpvalues;
// 	public int maxStacksize;
// 		
// 	public String source;
// 	
// 	//Debug info
// 	public int[] lines;
// 	public LocalVar[] locals;
// 	public String[] upvalues;
// 	
// 	//Debug helper
// 	public String findLocalName( int slot, int pc ){
// 		for ( int index = 0; index < locals.length; index++ ){
// 			LocalVar local = locals[index];
// 			
// 			if ( local.start > pc )
// 				break;
// 			
// 			if ( local.end >= pc && slot-- == 0 )
// 				return local.name;
// 		}
// 			
// 		return null;
// 	}
// 	
// }
// 
// Path: engine/hu/mentlerd/hybrid/Prototype.java
// public static class LocalVar {
// 	public String name;
// 		
// 	public int start;
// 	public int end;
// 		
// 	public LocalVar(String name) {
// 		this.name = name;
// 	}
// 	public LocalVar(String name, int start, int end){
// 		this.name = name;
// 					
// 		this.start = start;
// 		this.end   = end;
// 	}
// }


import hu.mentlerd.hybrid.Prototype;
import hu.mentlerd.hybrid.Prototype.LocalVar;
import java.util.Hashtable;
import hu.mentlerd.hybrid.LuaException;

/*******************************************************************************
* Copyright (c) 2007 LuaJ. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
package hu.mentlerd.hybrid.compiler;




/**
 * @exclude
 */
public class FuncState {

	private static final Object NULL_OBJECT = new Object();

	/* upvalue names */
//	public String[] upvalues;
	
	public int linedefined;
	public int lastlinedefined;
	public int isVararg;
	

// Path: engine/hu/mentlerd/hybrid/LuaException.java
// public class LuaException extends RuntimeException{
// 	private static final long serialVersionUID = -8214311557059032574L;
// 
// 	private Object luaCause;
// 	
// 	public LuaException( String message ) {
// 		super( message );
// 	}
// 
// 	public LuaException( String message, Object cause ){
// 		super( message );
// 		this.luaCause = cause;
// 	}
// 
// 	public LuaException( Throwable cause ){
// 		super(cause);
// 	}
// 	
// 	public Object getLuaCause(){
// 		if ( luaCause == null )
// 			return getMessage();
// 		
// 		return luaCause;
// 	}
// }
// 
// Path: engine/hu/mentlerd/hybrid/Prototype.java
// public final class Prototype {
// 	
// 	public static class LocalVar {
// 		public String name;
// 		
// 		public int start;
// 		public int end;
// 		
// 		public LocalVar(String name) {
// 			this.name = name;
// 		}
// 		public LocalVar(String name, int start, int end){
// 			this.name = name;
// 					
// 			this.start = start;
// 			this.end   = end;
// 		}
// 	}
// 	
// 	public int[] code;
// 
// 	public Object[] constants;
// 	public Prototype[] prototypes;
// 	
// 	public int numParams;
// 	public boolean isVararg;
// 
// 	public int numUpvalues;
// 	public int maxStacksize;
// 		
// 	public String source;
// 	
// 	//Debug info
// 	public int[] lines;
// 	public LocalVar[] locals;
// 	public String[] upvalues;
// 	
// 	//Debug helper
// 	public String findLocalName( int slot, int pc ){
// 		for ( int index = 0; index < locals.length; index++ ){
// 			LocalVar local = locals[index];
// 			
// 			if ( local.start > pc )
// 				break;
// 			
// 			if ( local.end >= pc && slot-- == 0 )
// 				return local.name;
// 		}
// 			
// 		return null;
// 	}
// 	
// }
// 
// Path: engine/hu/mentlerd/hybrid/Prototype.java
// public static class LocalVar {
// 	public String name;
// 		
// 	public int start;
// 	public int end;
// 		
// 	public LocalVar(String name) {
// 		this.name = name;
// 	}
// 	public LocalVar(String name, int start, int end){
// 		this.name = name;
// 					
// 		this.start = start;
// 		this.end   = end;
// 	}
// }


// Path: engine/hu/mentlerd/hybrid/compiler/FuncState.java
import hu.mentlerd.hybrid.Prototype;
import hu.mentlerd.hybrid.Prototype.LocalVar;
import java.util.Hashtable;
import hu.mentlerd.hybrid.LuaException;

/*******************************************************************************
* Copyright (c) 2007 LuaJ. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
package hu.mentlerd.hybrid.compiler;




/**
 * @exclude
 */
public class FuncState {

	private static final Object NULL_OBJECT = new Object();

	/* upvalue names */
//	public String[] upvalues;
	
	public int linedefined;
	public int lastlinedefined;
	public int isVararg;
	

	Prototype f;  /* current function header */
