C# Class NPLMono.NPLParser

Exibir arquivo Open project: LiXizhi/NPLRuntime

Public Methods

Method Description
DataStatementToXmlElement ( XmlDocument doc, NPLLex ls ) : XmlElement

Parse: name = data | table Basically, there is only one statement like msg = {...} in a web service or NPL activation call.

FillDataToXmlElement ( XmlDocument doc, NPLLex ls, XmlElement ParentNode ) : bool

Parse: data | table NPL uses a similar element name for basic data types as in soap and xml/rpc Supported NPL types are table, boolean, string, double, index, nil. e.g. the NPL table msg={x=2, [1]="string value",OK=true} will be serialized to following table. 2 string value true the input NPL table key name better not be the above name to avoid confusion.

IsIdentifier ( string input ) : bool
NPLCodeToXmlElement ( string npl_code ) : XmlElement

converting from NPL code to xml element

check ( NPLLex ls, int c ) : void
check_match ( NPLLex ls, int what, int who, int where ) : void
enterlevel ( NPLLex ls ) : void
error_expected ( NPLLex ls, int token ) : void
leavelevel ( NPLLex ls ) : void
lookahead ( NPLLex ls ) : void
next ( NPLLex ls ) : void
testnext ( NPLLex ls, int c ) : int

Method Details

DataStatementToXmlElement() public static method

Parse: name = data | table Basically, there is only one statement like msg = {...} in a web service or NPL activation call.
public static DataStatementToXmlElement ( XmlDocument doc, NPLLex ls ) : XmlElement
doc XmlDocument
ls NPLLex
return XmlElement

FillDataToXmlElement() public static method

Parse: data | table NPL uses a similar element name for basic data types as in soap and xml/rpc Supported NPL types are table, boolean, string, double, index, nil. e.g. the NPL table msg={x=2, [1]="string value",OK=true} will be serialized to following table. 2 string value true the input NPL table key name better not be the above name to avoid confusion.
public static FillDataToXmlElement ( XmlDocument doc, NPLLex ls, XmlElement ParentNode ) : bool
doc XmlDocument
ls NPLLex
ParentNode XmlElement
return bool

IsIdentifier() public static method

public static IsIdentifier ( string input ) : bool
input string
return bool

NPLCodeToXmlElement() public static method

converting from NPL code to xml element
public static NPLCodeToXmlElement ( string npl_code ) : XmlElement
npl_code string the statement must be like msg = {...}
return XmlElement

check() public static method

public static check ( NPLLex ls, int c ) : void
ls NPLLex
c int
return void

check_match() public static method

public static check_match ( NPLLex ls, int what, int who, int where ) : void
ls NPLLex
what int
who int
where int
return void

enterlevel() public static method

public static enterlevel ( NPLLex ls ) : void
ls NPLLex
return void

error_expected() public static method

public static error_expected ( NPLLex ls, int token ) : void
ls NPLLex
token int
return void

leavelevel() public static method

public static leavelevel ( NPLLex ls ) : void
ls NPLLex
return void

lookahead() public static method

public static lookahead ( NPLLex ls ) : void
ls NPLLex
return void

next() public static method

public static next ( NPLLex ls ) : void
ls NPLLex
return void

testnext() public static method

public static testnext ( NPLLex ls, int c ) : int
ls NPLLex
c int
return int