comp.lang.ada
 help / color / mirror / Atom feed
* OpenToken : accessing the lexeme from synthetize
@ 2017-07-01 22:20 Lionel Draghi
  2017-07-02  0:01 ` Lionel Draghi
  0 siblings, 1 reply; 5+ messages in thread
From: Lionel Draghi @ 2017-07-01 22:20 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-08 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-01 22:20 OpenToken : accessing the lexeme from synthetize Lionel Draghi
2017-07-02  0:01 ` Lionel Draghi
2017-07-02 16:50   ` Stephen Leake
2017-07-07 21:31     ` Lionel Draghi
2017-07-08 13:20       ` Stephen Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox