C# Class NPLMono.NPLParser

Afficher le fichier Open project: LiXizhi/NPLRuntime

Méthodes publiques

Méthode 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 méthode

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
Résultat XmlElement

FillDataToXmlElement() public static méthode

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
Résultat bool

IsIdentifier() public static méthode

public static IsIdentifier ( string input ) : bool
input string
Résultat bool

NPLCodeToXmlElement() public static méthode

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

check() public static méthode

public static check ( NPLLex ls, int c ) : void
ls NPLLex
c int
Résultat void

check_match() public static méthode

public static check_match ( NPLLex ls, int what, int who, int where ) : void
ls NPLLex
what int
who int
where int
Résultat void

enterlevel() public static méthode

public static enterlevel ( NPLLex ls ) : void
ls NPLLex
Résultat void

error_expected() public static méthode

public static error_expected ( NPLLex ls, int token ) : void
ls NPLLex
token int
Résultat void

leavelevel() public static méthode

public static leavelevel ( NPLLex ls ) : void
ls NPLLex
Résultat void

lookahead() public static méthode

public static lookahead ( NPLLex ls ) : void
ls NPLLex
Résultat void

next() public static méthode

public static next ( NPLLex ls ) : void
ls NPLLex
Résultat void

testnext() public static méthode

public static testnext ( NPLLex ls, int c ) : int
ls NPLLex
c int
Résultat int