MESSAGE
DATE | 2016-04-26 |
FROM | Christopher League
|
SUBJECT | Re: [Hangout-NYLXS] Good Morning Sunshine
|
From hangout-bounces-at-nylxs.com Wed Apr 27 00:07:49 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 920C0163D44; Wed, 27 Apr 2016 00:07:48 -0400 (EDT) X-Original-To: hangout-at-nylxs.com Delivered-To: hangout-at-nylxs.com Received: by mrbrklyn.com (Postfix, from userid 1000) id E7AA7163D43; Wed, 27 Apr 2016 00:06:30 -0400 (EDT) Resent-From: Ruben Safir Resent-Date: Wed, 27 Apr 2016 00:06:30 -0400 Resent-Message-ID: <20160427040630.GB1115-at-www.mrbrklyn.com> Resent-To: hangout-at-nylxs.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from B-EXH-EDGE1.liunet.edu (b-edge1.smtp.liu.edu [148.4.248.206]) by mrbrklyn.com (Postfix) with ESMTP id 2C916161224 for ; Tue, 26 Apr 2016 10:01:02 -0400 (EDT) Received: from B-EXH-3.liunet.edu (148.4.250.212) by B-EXH-EDGE1.liunet.edu (148.4.248.206) with Microsoft SMTP Server (TLS) id 14.3.210.2; Tue, 26 Apr 2016 10:00:57 -0400 Received: from localhost (96.250.202.133) by B-EXH-3.liunet.edu (148.4.250.212) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Tue, 26 Apr 2016 10:01:02 -0400 From: Christopher League To: Ruben Safir In-Reply-To: <571F1C89.5080209-at-mrbrklyn.com> References: <571F1C89.5080209-at-mrbrklyn.com> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Tue, 26 Apr 2016 10:01:02 -0400 Message-ID: <8760v4qxk1.fsf-at-lydrik.home.lan> MIME-Version: 1.0 X-Originating-IP: [96.250.202.133] X-ClientProxiedBy: U-EXH-CAS.liunet.edu (148.4.184.26) To B-EXH-3.liunet.edu (148.4.250.212) X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Subject: Re: [Hangout-NYLXS] Good Morning Sunshine X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list Reply-To: NYLXS Discussions List List-Id: NYLXS Discussions List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1012755514==" Errors-To: hangout-bounces-at-nylxs.com Sender: "hangout"
--===============1012755514== Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
--===-=-= Content-Type: multipart/alternative; boundary="==-=-="
--==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable
I think the way it works is just that if you define an alias in the grammar, like `op=3D('*'|'/')` then that becomes a field name rather than a method name. The same thing happens with the `left` and `right` terms:
left=3Dexpr op=3D('*'|'/') right=3Dexpr
We refer to `ctx.left` rather than `ctx.left()`, even though if we left out the aliases `left`/`right`/`op`, we would access them as methods instead of fields, like `ctx.expr(0)`.
CL
Ruben Safir writes:
> String op =3D ctx.op.getText(); > > > WHY does this not work? > String op =3D ctx.op().getText(); > > https://www.youtube.com/watch?v=3Dgkav2kjB0qc > > --=20 > So many immigrant groups have swept through our town > that Brooklyn, like Atlantis, reaches mythological > proportions in the mind of the world - RI Safir 1998 > http://www.mrbrklyn.com > > DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 > http://www.nylxs.com - Leadership Development in Free Software > http://www2.mrbrklyn.com/resources - Unpublished Archive > http://www.coinhangout.com - coins! > http://www.brooklyn-living.com > > Being so tracked is for FARM ANIMALS and and extermination camps, > but incompatible with living as a free human being. -RI Safir 2013
--==-=-= MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"
I think the way it works is just that if you define an alias in the grammar, like op=('*'|'/') then that becomes a field name rather than a method name. The same thing happens with the left and right terms: left=expr op=('*'|'/') right=expr
We refer to ctx.left rather than ctx.left(), even though if we left out the aliases left/right/op, we would access them as methods instead of fields, like ctx.expr(0).
CL
Ruben Safir [1]ruben-at-mrbrklyn.com writes:
String op = ctx.op.getText();
WHY does this not work? String op = ctx.op().getText();
https://www.youtube.com/watch?v=gkav2kjB0qc
- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
References
1. mailto:ruben-at-mrbrklyn.com
--==-=-=--
--===-=-= Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iQEcBAEBCAAGBQJXH3SeAAoJEGuLsz1PMbCLefUIAJ124pTSrvEuJELfo0wraOeB Z1Z8yqYQHzPf5EuL+yYTnCsrgxSzQXHbCNquJd6cK/OFXaAFjg/lW/uO4IstZ84G mc7A0FpSxdHmEp0p7QAjgq86aVjL9XZr0WDenHShb4tZNUitskgsOwZhuy/O+TN7 Ol7SkN8VYbx2vd1QNm0mtzG62jO3NamqeX5YF1pHC3PPaOidoOBROcAvQCudfCZZ xJc4IMqdI3xyVvsL3dOgmZtCLVUUgLtUwb6u+xYMKo2bsfJfZJtKpu4Ud9lQOugY iGbL8TGMGmqIEjiOhQBMRsgoKiucx9I+O24XbDL9H5JLwtF4RWwDSyo//Lr8SDM= =+e8d -----END PGP SIGNATURE----- --===-=-=--
--===============1012755514== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/ --===============1012755514==--
--===============1012755514== Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
--===-=-= Content-Type: multipart/alternative; boundary="==-=-="
--==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable
I think the way it works is just that if you define an alias in the grammar, like `op=3D('*'|'/')` then that becomes a field name rather than a method name. The same thing happens with the `left` and `right` terms:
left=3Dexpr op=3D('*'|'/') right=3Dexpr
We refer to `ctx.left` rather than `ctx.left()`, even though if we left out the aliases `left`/`right`/`op`, we would access them as methods instead of fields, like `ctx.expr(0)`.
CL
Ruben Safir writes:
> String op =3D ctx.op.getText(); > > > WHY does this not work? > String op =3D ctx.op().getText(); > > https://www.youtube.com/watch?v=3Dgkav2kjB0qc > > --=20 > So many immigrant groups have swept through our town > that Brooklyn, like Atlantis, reaches mythological > proportions in the mind of the world - RI Safir 1998 > http://www.mrbrklyn.com > > DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 > http://www.nylxs.com - Leadership Development in Free Software > http://www2.mrbrklyn.com/resources - Unpublished Archive > http://www.coinhangout.com - coins! > http://www.brooklyn-living.com > > Being so tracked is for FARM ANIMALS and and extermination camps, > but incompatible with living as a free human being. -RI Safir 2013
--==-=-= MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"
I think the way it works is just that if you define an alias in the grammar, like op=('*'|'/') then that becomes a field name rather than a method name. The same thing happens with the left and right terms: left=expr op=('*'|'/') right=expr
We refer to ctx.left rather than ctx.left(), even though if we left out the aliases left/right/op, we would access them as methods instead of fields, like ctx.expr(0).
CL
Ruben Safir [1]ruben-at-mrbrklyn.com writes:
String op = ctx.op.getText();
WHY does this not work? String op = ctx.op().getText();
https://www.youtube.com/watch?v=gkav2kjB0qc
- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
References
1. mailto:ruben-at-mrbrklyn.com
--==-=-=--
--===-=-= Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iQEcBAEBCAAGBQJXH3SeAAoJEGuLsz1PMbCLefUIAJ124pTSrvEuJELfo0wraOeB Z1Z8yqYQHzPf5EuL+yYTnCsrgxSzQXHbCNquJd6cK/OFXaAFjg/lW/uO4IstZ84G mc7A0FpSxdHmEp0p7QAjgq86aVjL9XZr0WDenHShb4tZNUitskgsOwZhuy/O+TN7 Ol7SkN8VYbx2vd1QNm0mtzG62jO3NamqeX5YF1pHC3PPaOidoOBROcAvQCudfCZZ xJc4IMqdI3xyVvsL3dOgmZtCLVUUgLtUwb6u+xYMKo2bsfJfZJtKpu4Ud9lQOugY iGbL8TGMGmqIEjiOhQBMRsgoKiucx9I+O24XbDL9H5JLwtF4RWwDSyo//Lr8SDM= =+e8d -----END PGP SIGNATURE----- --===-=-=--
--===============1012755514== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/ --===============1012755514==--
|
|