[erlang-questions] yecc question

Robert Virding robert.virding@REDACTED
Fri Aug 10 15:07:42 CEST 2012


No, yecc works on the type or class of a token not on its value and there is no provision to look at a tokens value when parsing.

Robert

----- Original Message -----
> Hi, let's say that I am parsing a string and that string has a
> backreference to something previously seen.
> like this :
> {key: 'nameA', value: n1},
> {key: 'nameB', value:n3},
> {key: 1, value:n2},
> {key: 2, value:n4}
> 
> here the values of key of 1 and 2 are backreferences to the 'nameA'
> and 'nameB'.
> Is there a way to lookup the value of reference 1 during parsing,
> rather than afterwards ?
> 
> Thanks,
> Radu
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list