MESSAGE
DATE | 2016-03-14 |
FROM | From: "Ruben.Safir"
|
SUBJECT | Subject: [Learn] CTX object
|
From learn-bounces-at-nylxs.com Mon Mar 14 19:03:30 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 2C175163D44; Mon, 14 Mar 2016 19:03:30 -0400 (EDT) X-Original-To: learn-at-nylxs.com Delivered-To: learn-at-nylxs.com Received: from mail-qg0-f43.google.com (mail-qg0-f43.google.com [209.85.192.43]) by mrbrklyn.com (Postfix) with ESMTP id 7A8FA163D43 for ; Mon, 14 Mar 2016 19:03:23 -0400 (EDT) Received: by mail-qg0-f43.google.com with SMTP id w104so9420qge.1 for ; Mon, 14 Mar 2016 16:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=my.liu.edu; s=google; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=kQBcyWrbpvkLrcP1NT6GQZy1nR0YlngiJXBAZE7cTXY=; b=DW+FRkOFILpHp6FiEXdFGyCTmwkjNTqnqmWMEVLF3AY8z7nnowmf22RiaYgpiGGATm hJm2ogy4ukWYD4Pi0WlLMt+w+E1+FrzjFjRB0c8Kwep2nYbph3J/t7KYDXDNg2KkchLr 5TSLX7PpYHdg8wZy4zdX6pMCVgjQLBVorIVW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=kQBcyWrbpvkLrcP1NT6GQZy1nR0YlngiJXBAZE7cTXY=; b=RZPOL/avJ4J45a9ChBqLb11kVu5CY6Nlmu3xWfFInKNducWCchG7eYzVI0MuEMdiyN HhWqRRDNerIgl33CwBSrH8c+R4H2Mo5IhN/Lns2orbqWvXxrM+dPOHGlMACU2PuWgvNW ZTQFVRnueQez5XQyqJ9h9SxD0ATGyEfi2HkcxbPez6WPgQssrW0zDdQ8O4W6cbQNg/rU h6smsm4RXnhx8ezNfxb2f8TU+1g2d8ZbhZGqPopOFS2JCpSeuClHk/uTi7SyWaACibyM PL9qyGqQpCjg9yTNfG2/m/Mo/UJBXKuaj1wJ1Y41VXs6Hp4bwwIaP+voEiHkvfWZ1ki1 Ocfw== X-Gm-Message-State: AD7BkJIusgGD429X/SBjVgMUZYldY0WXLoMyd59GDisI2d2nOQ8DK4w8SV6nXNzhZ2oKxSNJ X-Received: by 10.140.157.7 with SMTP id d7mr35577700qhd.17.1457996603003; Mon, 14 Mar 2016 16:03:23 -0700 (PDT) Received: from linux-p1s6.site (182631c.cst.lightpath.net. [24.38.3.28]) by smtp.gmail.com with ESMTPSA id c12sm11365799qge.36.2016.03.14.16.03.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2016 16:03:22 -0700 (PDT) From: "Ruben.Safir" X-Google-Original-From: "Ruben.Safir" To: learn-at-nylxs.com, Christopher League , hangout-at-nylxs.com Message-ID: <56E74339.6080100-at-my.liu.edu> Date: Mon, 14 Mar 2016 19:03:21 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Subject: [Learn] CTX object X-BeenThere: learn-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: learn-bounces-at-nylxs.com Sender: "Learn"
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" _______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
|
|