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:
13
src/main/java/lua/value/LNil.java
Normal file
13
src/main/java/lua/value/LNil.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package lua.value;
|
||||
|
||||
public final class LNil extends LValue {
|
||||
public static final LNil NIL = new LNil();
|
||||
|
||||
public final String luaAsString() {
|
||||
return "nil";
|
||||
}
|
||||
|
||||
public boolean luaAsBoolean() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user