[fpc-devel] C++ linking questions
jonas.maebe at elis.ugent.be
Sun Mar 21 14:30:21 CET 2010
On 21 Mar 2010, at 14:28, Paul Ishenin wrote:
> 21.03.2010 20:21, Sven Barth wrote:
>>> 3. How can I parse a not reserved identifier? Checking "idtoken" for "_ID", using it with "token" and after usage calling "consume(_ID);"?
>> Usage is with "pattern" (all letters uppercase) or "orgpattern" (original casing) instead of "token"... the rest works as expected.
> Why do you need this at all? If you want to parse "namespace" word then just add it to the token list as
> (str:'NAMESPACE' ;special:false;keyword:m_all;op:NOTOKEN)
That should be "m_none" instead of m_all, otherwise every program using "namespace" as identifier will fail to compile afterwards.
More information about the fpc-devel