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)

Best regards,
Paul Ishenin.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to