From: Lionel Draghi <lionel.draghi@gmail.com>
Subject: OpenToken : accessing the lexeme from synthetize
Date: Sat, 1 Jul 2017 15:20:57 -0700 (PDT)
Date: 2017-07-01T15:20:57-07:00 [thread overview]
Message-ID: <0860b74f-2572-4e64-b71a-9812d79b29bb@googlegroups.com> (raw)
Hi,
I suppose it’s 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
Left : constant Token_List.List_Iterator := Token_List.Initial_Iterator (Source);
– the identifier I want to diplay is the first token in the list
Tk : Master_Token.Class := Token_List.Token_Handle (Left).all;
begin
– and now?
Ada.Text_IO.Put_Line (…);
end Action;
Any help? TIA.
next reply other threads:[~2017-07-01 22:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-01 22:20 Lionel Draghi [this message]
2017-07-02 0:01 ` OpenToken : accessing the lexeme from synthetize Lionel Draghi
2017-07-02 16:50 ` Stephen Leake
2017-07-07 21:31 ` Lionel Draghi
2017-07-08 13:20 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox