C# Class IronKonoha.KStatement

Inheritance: ExprOrStmt
Exibir arquivo Open project: tetsurom/ikonoha Class Usage Examples

Public Methods

Method Description
KStatement ( LineInfo line, KonohaSpace ks ) : System
ParseExpr ( Context ctx, Syntax syn, IList tls, int s, int c, int e ) : KonohaExpr
ParseStmt ( Context ctx, Syntax syn, Symbol name, IList tls, int s, int e ) : int
addAnnotation ( Context ctx, IList tls, int s, int e ) : int
addExprParams ( Context ctx, KonohaExpr expr, IList tls, int s, int e, bool allowEmpty ) : void
lookAheadKeyword ( IList tls, int s, int e, Token rule ) : int
matchSyntaxRule ( Context ctx, IList rules, LineInfo uline, IList tls, int s, int e, bool optional ) : int
newExpr2 ( Context ctx, IList tls, int s, int e ) : KonohaExpr
parseSyntaxRule ( Context ctx, IList tls, int s, int e ) : bool
toERR ( Context ctx, uint estart ) : void

Private Methods

Method Description
findBinaryOp ( Context ctx, IList tls, int s, int e, Syntax &synRef ) : int
isUnaryOp ( Context ctx, Token tk ) : bool
skipUnaryOp ( Context ctx, IList tls, int s, int e ) : int

Method Details

KStatement() public method

public KStatement ( LineInfo line, KonohaSpace ks ) : System
line LineInfo
ks KonohaSpace
return System

ParseExpr() public method

public ParseExpr ( Context ctx, Syntax syn, IList tls, int s, int c, int e ) : KonohaExpr
ctx Context
syn Syntax
tls IList
s int
c int
e int
return KonohaExpr

ParseStmt() public method

public ParseStmt ( Context ctx, Syntax syn, Symbol name, IList tls, int s, int e ) : int
ctx Context
syn Syntax
name Symbol
tls IList
s int
e int
return int

addAnnotation() public method

public addAnnotation ( Context ctx, IList tls, int s, int e ) : int
ctx Context
tls IList
s int
e int
return int

addExprParams() public method

public addExprParams ( Context ctx, KonohaExpr expr, IList tls, int s, int e, bool allowEmpty ) : void
ctx Context
expr KonohaExpr
tls IList
s int
e int
allowEmpty bool
return void

lookAheadKeyword() public method

public lookAheadKeyword ( IList tls, int s, int e, Token rule ) : int
tls IList
s int
e int
rule Token
return int

matchSyntaxRule() public method

public matchSyntaxRule ( Context ctx, IList rules, LineInfo uline, IList tls, int s, int e, bool optional ) : int
ctx Context
rules IList
uline LineInfo
tls IList
s int
e int
optional bool
return int

newExpr2() public method

public newExpr2 ( Context ctx, IList tls, int s, int e ) : KonohaExpr
ctx Context
tls IList
s int
e int
return KonohaExpr

parseSyntaxRule() public method

public parseSyntaxRule ( Context ctx, IList tls, int s, int e ) : bool
ctx Context
tls IList
s int
e int
return bool

toERR() public method

public toERR ( Context ctx, uint estart ) : void
ctx Context
estart uint
return void