> ---------------------------------------------------------------------- > (0005246) kre (reporter) - 2021-02-18 10:32 > https://www.austingroupbugs.net/view.php?id=1454#c5246 > ---------------------------------------------------------------------- > Re https://www.austingroupbugs.net/view.php?id=1454#c5245 > > That raises an additional problem, as (not concerning the case productions > here) that isn't the way things actually work. > > "convert the token identifier type of the TOKEN to a token identifier > acceptable at that point in the grammar." > > isn't what (normally) happens. If it were the command > > do my work > > would run the "do" command, as "do" (the reserved word) is not acceptable > at that point in tne grammar, so the TOKEN "do" should have been > (according > to that text) turned into a WORD rather tha nthe keywoprd "do". > > There isn't a shell around that behaves like that, it is in the command > line > position, "do" matches the spelling of the reserved word, Rule 1 applies, > the > reserved word is generated, despite not being "acceptable at that point in > the grammar":.
How about changing that problem sentence in 2.10.1 to: When a TOKEN is seen where one of those annotated productions could be used to reduce the symbol, the applicable rule shall be applied to convert the token identifier type of the TOKEN to: * The token identifier of the recognized reserved word, for rule 1. * A token identifier acceptable at that point in the grammar, for all other rules. -- Geoff Clare <g.cl...@opengroup.org> The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England