Official D Grammar
Jacob Carlborg
doob at me.com
Tue Apr 9 04:12:54 PDT 2013
On 2013-04-02 04:13, Walter Bright wrote:
>> 1) Grammar defined in terms of things that aren't tokens. Take, for
>> example,
>> PropertyDeclaration. It's defined as an "@" token followed by... what?
>> "safe"?
>> It's not a real token. It's an identifier. You can't parse this based on
>> checking the token type. You have to check the type and the value.
>
> True, do you have a suggestion?
Just define that @safe should be a token?
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list