C# 클래스 NPLMono.NPLParser

파일 보기 프로젝트 열기: LiXizhi/NPLRuntime

공개 메소드들

메소드 설명
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

메소드 상세

DataStatementToXmlElement() 공개 정적인 메소드

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
리턴 XmlElement

FillDataToXmlElement() 공개 정적인 메소드

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
리턴 bool

IsIdentifier() 공개 정적인 메소드

public static IsIdentifier ( string input ) : bool
input string
리턴 bool

NPLCodeToXmlElement() 공개 정적인 메소드

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

check() 공개 정적인 메소드

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

check_match() 공개 정적인 메소드

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

enterlevel() 공개 정적인 메소드

public static enterlevel ( NPLLex ls ) : void
ls NPLLex
리턴 void

error_expected() 공개 정적인 메소드

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

leavelevel() 공개 정적인 메소드

public static leavelevel ( NPLLex ls ) : void
ls NPLLex
리턴 void

lookahead() 공개 정적인 메소드

public static lookahead ( NPLLex ls ) : void
ls NPLLex
리턴 void

next() 공개 정적인 메소드

public static next ( NPLLex ls ) : void
ls NPLLex
리턴 void

testnext() 공개 정적인 메소드

public static testnext ( NPLLex ls, int c ) : int
ls NPLLex
c int
리턴 int