|
Re: cross-reference ambiguity with grammar rules [message #1696027 is a reply to message #1696024] |
Thu, 21 May 2015 09:14 |
|
Hi,
since cross references are not a parsing thing but done afterwards, the grammar from a parser point of view looks like
declarations=ID | otherName=ID | string=String
=> on parsing side this cannot be resolved.
of course you could hook into linking and could create a fake Declarations on the fly,
but this is not what you want to do.
if this is not an existing language i strictly recommend you to differentiate both cases syntactically
another possiblility would be not to cross link at all and do the byname lookup in generation, hyperlinking etc manually
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04693 seconds