C# Class IronKonoha.Parser

Create Konoha AST from sourcecode.
Mostra file Open project: tetsurom/ikonoha Class Usage Examples

Public Methods

Method Description
CreateBlock ( ExprOrStmt parent, IList token, int start, int end, char delim ) : BlockExpr

トークン列をパースしてブロックを得る

Parser ( Context ctx, KonohaSpace ks ) : System

Private Methods

Method Description
SelectStatementLine ( int &indent, IList tokens, int start, int end, char delim, IList tokensDst, Token &errorToken ) : int
appendKeyword ( IList tokens, int start, int end, IList tokensDst, Token &errorToken ) : int
makeTree ( TokenType tokentype, IList tokens, int start, int end, char closeChar, IList tokensDst, Token &errorToken ) : int

Method Details

CreateBlock() public method

トークン列をパースしてブロックを得る
public CreateBlock ( ExprOrStmt parent, IList token, int start, int end, char delim ) : BlockExpr
parent ExprOrStmt 親のステートメント
token IList トークン列
start int 開始トークン位置
end int 終了トークンの次の位置
delim char デリミタ
return BlockExpr

Parser() public method

public Parser ( Context ctx, KonohaSpace ks ) : System
ctx Context
ks KonohaSpace
return System