Java Code Examples for org.luaj.vm2.LuaValue#ENV

The following examples show how to use org.luaj.vm2.LuaValue#ENV . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LexState.java    From VideoOS-Android-SDK with GNU General Public License v3.0 5 votes vote down vote up
void setinput(LuaC L, int firstByte, InputStream z, LuaString source) {
    this.decpoint = '.';
    this.L = L;
    this.lookahead.token = TK_EOS; /* no look-ahead token */
    this.lookahead2.token = TK_EOS;
    this.z = z;
    this.fs = null;
    this.linenumber = 1;
    this.lastline = 1;
    this.source = source;
    this.envn = LuaValue.ENV;  /* environment variable name */
    this.nbuff = 0;   /* initialize buffer */
    this.current = firstByte; /* read first char */
    this.skipShebang();
}
 
Example 2
Source File: LexState.java    From XPrivacyLua with GNU General Public License v3.0 5 votes vote down vote up
void setinput(LuaC.CompileState L, int firstByte, InputStream z, LuaString source) {
	this.decpoint = '.';
	this.L = L;
	this.lookahead.token = TK_EOS; /* no look-ahead token */
	this.z = z;
	this.fs = null;
	this.linenumber = 1;
	this.lastline = 1;
	this.source = source;
	this.envn = LuaValue.ENV;  /* environment variable name */
	this.nbuff = 0;   /* initialize buffer */
	this.current = firstByte; /* read first char */
	this.skipShebang();
}
 
Example 3
Source File: LexState.java    From HtmlNative with Apache License 2.0 5 votes vote down vote up
void setinput(LuaC.CompileState L, int firstByte, InputStream z, LuaString source) {
	this.decpoint = '.';
	this.L = L;
	this.lookahead.token = TK_EOS; /* no look-ahead token */
	this.z = z;
	this.fs = null;
	this.linenumber = 1;
	this.lastline = 1;
	this.source = source;
	this.envn = LuaValue.ENV;  /* environment variable name */
	this.nbuff = 0;   /* initialize buffer */
	this.current = firstByte; /* read first char */
	this.skipShebang();
}
 
Example 4
Source File: LexState.java    From luaj with MIT License 5 votes vote down vote up
void setinput(LuaC.CompileState L, int firstByte, InputStream z, LuaString source) {
	this.decpoint = '.';
	this.L = L;
	this.lookahead.token = TK_EOS; /* no look-ahead token */
	this.z = z;
	this.fs = null;
	this.linenumber = 1;
	this.lastline = 1;
	this.source = source;
	this.envn = LuaValue.ENV;  /* environment variable name */
	this.nbuff = 0;   /* initialize buffer */
	this.current = firstByte; /* read first char */
	this.skipShebang();
}