At 08:03 18/10/2008, Greg Smolyn wrote:
 >Does it makes sense to modify the IDENT token so it looks like
 >
 >IDENT: F_IDENT | F_IDENTWITHHASH | F_IDENTWITHCLASS ;
 >
 >and in the latter two actually emit an IDENT, Space, and HASH or 

 >CLASS token?

No, because only the top-level lexer rule can emit tokens.

I think a better idea would be to make combinator optional in the 
selector rule.  That way the space is allowed but not required.

I'm a little surprised that you're not hiding whitespace, 
though.  I didn't think CSS was whitespace-sensitive..?  (Not that 
there's anything wrong with not hiding whitespace.)


List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to