[sc34wg3] CTM, clause 3.12

Lars Marius Garshol larsga at garshol.priv.no
Wed Feb 25 10:22:04 EST 2009

* Lars Heuer
> It should mean that the variable name may contain everything from the
> the "identifier" production but no dots '.'

Hmmmm. Unfortunately, that's not what the minus operator does:

Basically, the difference between

   '$' (identifier - ['.'])


   '$' identifier

is that the former disallows "$." (which of course the second does,  

> The rationale was that TMQL forbids '.' in variable names and we
> started with the goal that CTM should be similar to TMQL (syntax wise)
> and vice versa.
> I can simply paste the rule for "identifier" without the dot into the
> variable production or do you have a suggestion how to express that in
> the grammar?

Looks to me like

   '$' name-start name-part*

would do the job... :-)

--Lars M.

More information about the sc34wg3 mailing list