Package org.luaj.kahluafork.compiler
Class LexState
java.lang.Object
org.luaj.kahluafork.compiler.LexState
public class LexState
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description int
nCcalls
protected static java.lang.String
RESERVED_LOCAL_VAR_FOR_CONTROL
protected static java.lang.String
RESERVED_LOCAL_VAR_FOR_GENERATOR
protected static java.lang.String
RESERVED_LOCAL_VAR_FOR_INDEX
protected static java.lang.String
RESERVED_LOCAL_VAR_FOR_LIMIT
protected static java.lang.String
RESERVED_LOCAL_VAR_FOR_STATE
protected static java.lang.String
RESERVED_LOCAL_VAR_FOR_STEP
protected static java.lang.String[]
RESERVED_LOCAL_VAR_KEYWORDS
-
Constructor Summary
Constructors Constructor Description LexState(java.io.Reader stream, int firstByte, java.lang.String source)
-
Method Summary
Modifier and Type Method Description static Prototype
compile(int firstByte, java.io.Reader z, java.lang.String name, java.lang.String source)
static boolean
isReservedKeyword(java.lang.String varName)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
nCcalls
public int nCcalls -
RESERVED_LOCAL_VAR_FOR_CONTROL
protected static final java.lang.String RESERVED_LOCAL_VAR_FOR_CONTROL- See Also:
- Constant Field Values
-
RESERVED_LOCAL_VAR_FOR_STATE
protected static final java.lang.String RESERVED_LOCAL_VAR_FOR_STATE- See Also:
- Constant Field Values
-
RESERVED_LOCAL_VAR_FOR_GENERATOR
protected static final java.lang.String RESERVED_LOCAL_VAR_FOR_GENERATOR- See Also:
- Constant Field Values
-
RESERVED_LOCAL_VAR_FOR_STEP
protected static final java.lang.String RESERVED_LOCAL_VAR_FOR_STEP- See Also:
- Constant Field Values
-
RESERVED_LOCAL_VAR_FOR_LIMIT
protected static final java.lang.String RESERVED_LOCAL_VAR_FOR_LIMIT- See Also:
- Constant Field Values
-
RESERVED_LOCAL_VAR_FOR_INDEX
protected static final java.lang.String RESERVED_LOCAL_VAR_FOR_INDEX- See Also:
- Constant Field Values
-
RESERVED_LOCAL_VAR_KEYWORDS
protected static final java.lang.String[] RESERVED_LOCAL_VAR_KEYWORDS
-
-
Constructor Details
-
LexState
public LexState(java.io.Reader stream, int firstByte, java.lang.String source)
-
-
Method Details
-
isReservedKeyword
public static boolean isReservedKeyword(java.lang.String varName) -
compile
public static Prototype compile(int firstByte, java.io.Reader z, java.lang.String name, java.lang.String source)
-