[antlr-interest] Lexer parsing problem and Documentation

Wigg, J D wiggjd at lsbu.ac.uk
Wed Jun 6 07:42:14 PDT 2007


Where has the old antlr documentation gone? Some of us are still using
2.7!
 
I can't find anything about lexer predicates.
 
In parsing C++ I'm trying to remove asm statements in the lexer as
though they were comments.
 
I'm using a predicate in the lexer as follows,
 
("__asm"|"_asm"|"asm") LPAREN)=>
 
but this will only match "asm(" provided there is no space between
"asm" and "(".
 
What's the problem here and how could I get over it?
 
Thanks,
 
David Wigg



--
Copyright in this email and in any attachments belongs to London South Bank University.  This email, and its attachments if any, may be confidential or legally privileged and is intended to be seen only by the person to whom it is addressed.  If you are not the intended recipient, please note the following: (1) You should take immediate action to notify the sender and delete the original email and all copies from your computer systems; (2) You should not read copy or use the contents of the email nor disclose it or its existence to anyone else.

The views expressed herein are those of the author(s) and should not be taken as those of London South Bank University, unless this is specifically stated.

London South Bank University is a company limited by guarantee registered in England and Wales.  The following details apply to London South Bank University: Company number - 00986761; Registered office and trading address - 103 Borough Road London SE1 0AA; VAT number - 778 1116 17; Email address - lsbuinfo at lsbu.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070606/cd960272/attachment.html 


More information about the antlr-interest mailing list