C# Class NPLMono.NPLLex

lexer for NPL files. It is the same lexer of lua 5.1
Datei anzeigen Open project: LiXizhi/NPLRuntime Class Usage Examples

Public Properties

Property Type Description
m_lexState LexState
m_zio Zio

Public Methods

Method Description
GetState ( ) : LexState
NPLLex ( )
SetInput ( string input ) : LexState
ThrowError ( LexState ls, string errorMsg ) : void
checkbuffer ( LexState LS, int len ) : void
inclinenumber ( LexState LS ) : void
luaX_checklimit ( LexState ls, int val, int limit, string msg ) : void
luaX_error ( LexState ls, string s, string token ) : void
luaX_errorline ( LexState ls, string s, string token, int line ) : void
luaX_lex ( LexState LS, SemInfo seminfo ) : int
luaX_lexerror ( LexState ls, string s, int token ) : void
luaX_syntaxerror ( LexState ls, string msg ) : void
luaX_token2str ( LexState ls, int token ) : string
next ( LexState LS ) : int
read_long_string ( LexState LS, SemInfo seminfo ) : void
read_numeral ( LexState LS, int comma, SemInfo seminfo ) : void
read_string ( LexState LS, int del, SemInfo seminfo ) : void
readname ( LexState LS ) : int
save ( LexState LS, char c, int &l ) : void
save_and_next ( LexState LS, int &l ) : void

Method Details

GetState() public method

public GetState ( ) : LexState
return LexState

NPLLex() public method

public NPLLex ( )

SetInput() public method

public SetInput ( string input ) : LexState
input string
return LexState

ThrowError() public static method

public static ThrowError ( LexState ls, string errorMsg ) : void
ls LexState
errorMsg string
return void

checkbuffer() public static method

public static checkbuffer ( LexState LS, int len ) : void
LS LexState
len int
return void

inclinenumber() public static method

public static inclinenumber ( LexState LS ) : void
LS LexState
return void

luaX_checklimit() public static method

public static luaX_checklimit ( LexState ls, int val, int limit, string msg ) : void
ls LexState
val int
limit int
msg string
return void

luaX_error() public static method

public static luaX_error ( LexState ls, string s, string token ) : void
ls LexState
s string
token string
return void

luaX_errorline() public static method

public static luaX_errorline ( LexState ls, string s, string token, int line ) : void
ls LexState
s string
token string
line int
return void

luaX_lex() public static method

public static luaX_lex ( LexState LS, SemInfo seminfo ) : int
LS LexState
seminfo SemInfo
return int

luaX_lexerror() public static method

public static luaX_lexerror ( LexState ls, string s, int token ) : void
ls LexState
s string
token int
return void

luaX_syntaxerror() public static method

public static luaX_syntaxerror ( LexState ls, string msg ) : void
ls LexState
msg string
return void

luaX_token2str() public static method

public static luaX_token2str ( LexState ls, int token ) : string
ls LexState
token int
return string

next() public static method

public static next ( LexState LS ) : int
LS LexState
return int

read_long_string() public static method

public static read_long_string ( LexState LS, SemInfo seminfo ) : void
LS LexState
seminfo SemInfo
return void

read_numeral() public static method

public static read_numeral ( LexState LS, int comma, SemInfo seminfo ) : void
LS LexState
comma int
seminfo SemInfo
return void

read_string() public static method

public static read_string ( LexState LS, int del, SemInfo seminfo ) : void
LS LexState
del int
seminfo SemInfo
return void

readname() public static method

public static readname ( LexState LS ) : int
LS LexState
return int

save() public static method

public static save ( LexState LS, char c, int &l ) : void
LS LexState
c char
l int
return void

save_and_next() public static method

public static save_and_next ( LexState LS, int &l ) : void
LS LexState
l int
return void

Property Details

m_lexState public_oe property

public LexState m_lexState
return LexState

m_zio public_oe property

public Zio m_zio
return Zio