Initial draft of interpreter. Lua compiled "chunks" can be unmarshalled. Approximately half of bytecodes implemented in some form or another.
This commit is contained in:
21
src/main/java/lua/value/LString.java
Normal file
21
src/main/java/lua/value/LString.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package lua.value;
|
||||
|
||||
import lua.StackState;
|
||||
|
||||
public class LString extends LValue {
|
||||
|
||||
final String m_string;
|
||||
|
||||
public LString(String string) {
|
||||
this.m_string = string;
|
||||
}
|
||||
|
||||
// TODO: what to do with LuaState?
|
||||
public LString(StackState l, String string) {
|
||||
this(string);
|
||||
}
|
||||
|
||||
public String luaAsString() {
|
||||
return m_string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user