[antlr-interest] CSS Grammar failing

Brian Nelson brian at neuesoftware.com
Tue Apr 28 10:32:58 PDT 2009


So I have been trying to use the CSS3 grammar from the website 
(http://www.antlr.org/grammar/1214945003224/csst3.g) and I can't seem to 
figure out how it is failing on the following test case:

#foo {
    color: black;
}

It seems to be failing on the # in #foo. If I change the 2nd case in 
elem to an underscore, it seems to work just fine.

Any have some time to check it out and let me know what I am not 
getting? I am relatively new to parsing. I had to go about writing my 
own but I am back to trying antlr at this point, as managing my own is 
becoming a huge pain.

Thanks in advance,
    Brian

-- 
Brian Nelson
Software Engineer, Neue Software

e. brian at neuesoftware.com
c. +1 408 373 8310

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090428/f27afe4c/attachment.html 


More information about the antlr-interest mailing list