MESSAGE
DATE | 2016-03-14 |
FROM | From: "Ruben.Safir"
|
SUBJECT | Subject: [Hangout-NYLXS] CTX object
|
can anyone tell me where this ctx object is defined and when it is instantiated?
visitProg(ctx) top-level program where ctx.stmt(0).getText() is "n=5" and ctx.stmt(1).getText() is "print -3*(n+1)" visitStmt(ctx) assignment statement where ctx.ID().getText() is "n" and ctx.expr().getText() is "5" visitExpr(ctx) numeric literal where ctx.NUM().getText() is "5" visitStmt(ctx) print statementan where ctx.ID() is null and ctx.expr().getText() is "-3*(n+1)" visitExpr(ctx) multiplication where ctx.expr(0).getText() is "-3" and ctx.expr(1).getText() is "(n+1)" visitExpr(ctx) negation where ctx.expr(0).getText() is "3" visitExpr(ctx) numeric literal where ctx.NUM().getText() is "3" visitExpr(ctx) parentheses where ctx.expr(0).getText() is "n+1" visitExpr(ctx) addition where ctx.expr(0).getText() is "n" and ctx.expr(1).getText() is "1" visitExpr(ctx) variable where ctx.ID().getText() is "n" visitExpr(ctx) numeric literal where ctx.NUM().getText() is "1" _______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/
|
|