From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.0.8 with SMTP id 8mr8051849ita.31.1498947657518; Sat, 01 Jul 2017 15:20:57 -0700 (PDT) X-Received: by 10.36.89.7 with SMTP id p7mr621067itb.4.1498947657497; Sat, 01 Jul 2017 15:20:57 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!188no569375itx.0!news-out.google.com!s132ni3958itb.0!nntp.google.com!v202no504366itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 1 Jul 2017 15:20:57 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a01:e35:2ecd:88c0:b54f:5249:d16d:173b; posting-account=O1Kt4QoAAABKYAjrg-cGai_vZLnN2LEw NNTP-Posting-Host: 2a01:e35:2ecd:88c0:b54f:5249:d16d:173b User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0860b74f-2572-4e64-b71a-9812d79b29bb@googlegroups.com> Subject: OpenToken : accessing the lexeme from synthetize From: Lionel Draghi Injection-Date: Sat, 01 Jul 2017 22:20:57 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1724 X-Received-Body-CRC: 484174335 Xref: news.eternal-september.org comp.lang.ada:47254 Date: 2017-07-01T15:20:57-07:00 List-Id: Hi, I suppose it=E2=80=99s obvious, but I couldn't find a way to get the lexeme= image within a synthetize procedure. procedure Action (New_Token : out Nonterminal.Class; Source : in Token_List.Instance'Class; To_ID : in Token_ID_Type) is=20 Left : constant Token_List.List_Iterator :=3D Token_List.Initial_Ite= rator (Source); =E2=80=93 the identifier I want to diplay is the first token in the l= ist Tk : Master_Token.Class :=3D Token_List.Token_Handle (Left).all; begin =E2=80=93 and now? Ada.Text_IO.Put_Line (=E2=80=A6); =09 end Action; Any help? TIA.