wakama2/jkonoha — pull request #18 by leejonggun (2012-06-29 05:23:59+00:00)
Title: porting ClassGlue.java

Run: A.func();
Result: TK(7) TK_USYMBOL 0+0: kw=$USYMBOL 'A'
TK(8) TK_OPERATOR 0+0: kw=. '.'
TK(9) TK_SYMBOL 0+0: kw=$SYMBOL 'func'
(
====
DEBUG(jkonoha.ast.Stmt.newExpr2:48) ** Found BinaryOp: s=7, idx=10, e=11, '(... )'**
DEBUG(jkonoha.ast.Stmt.newExpr2:48) ** Found BinaryOp: s=7, idx=8, e=10, '.'**

[0] Cons: kw='$params', size = 2
[0]: jkonoha.ast.Token TK_SYMBOL 0+0: kw=$SYMBOL 'func'
[1] ExprTerm: kw = $USYMBOL, A
STMT $expr {
key='$expr':
[0] Cons: kw='$params', size = 2
[0]: jkonoha.ast.Token TK_SYMBOL 0+0: kw=$SYMBOL 'func'
[1] ExprTerm: kw = $USYMBOL, A

Maybe dotSyntax in ClassGlue works. TODO is exprTyCheck.