Re: how to get left hand side symbol in action

2019-05-09 Thread Akim Demaille
Hi r0ller, > Le 6 mai 2019 à 21:13, r0ller a écrit : > > Hi Akim, > > [...] > A : B C > { > const node_info& main_node=sparser->get_node_info($1); > const node_info& dependent_node=sparser->get_node_info($2); > sparser->add_feature_to_leaf(main_node,"main_verb"); > std::string parent_symbol="A"

Re: how to get left hand side symbol in action

2019-05-09 Thread Akim Demaille
Hi Christian, > Le 9 mai 2019 à 13:22, Christian Schoenebeck a > écrit : > > On Donnerstag, 9. Mai 2019 08:50:27 CEST Akim Demaille wrote: >>> Perhaps a variation of $ and @ that gives access to the name, >> >> I am very uncomfortable with this. Symbol names are technical details, >> most of

Re: how to get left hand side symbol in action

2019-05-09 Thread r0ller
Well, I can only agree:) Eredeti levél Feladó: Christian Schoenebeck < schoeneb...@crudebyte.com (Link -> mailto:schoeneb...@crudebyte.com) > Dátum: 2019 május 9 13:23:13 Tárgy: Re: how to get left hand side symbol in action Címzett: help-bison@gnu.org (Link -> mailto:help-bison

Re: how to get left hand side symbol in action

2019-05-09 Thread Christian Schoenebeck
On Donnerstag, 9. Mai 2019 08:50:27 CEST Akim Demaille wrote: > > Perhaps a variation of $ and @ that gives access to the name, > > I am very uncomfortable with this. Symbol names are technical details, > most of the time they are irrelevant to the end user, just like the > the user of a piece of

Re: how to get left hand side symbol in action

2019-05-09 Thread Hans Åberg
> On 9 May 2019, at 08:50, Akim Demaille wrote: > >> Le 6 mai 2019 à 22:45, Hans Åberg a écrit : >> >>> On 6 May 2019, at 18:09, Akim Demaille wrote: >>> Le 6 mai 2019 à 14:50, Hans Åberg a écrit : > On 6 May 2019, at 11:28, r0ller wrote: > > Hi All, > > Is

Re: Parsing user-defined types

2019-05-09 Thread EML
Hi Hans - thanks - that looks good. On 08/05/2019 22:10, Hans Åberg wrote: On 8 May 2019, at 22:30, EML wrote: Sometimes, to make the grammar manageable, the lexer has to *dynamically* return 'typename' instead of 'identifier'. Only semantic analysis can determine what is a user-defined ty