Distinguish between number and value
0 posts in topic
Flat View  Flat View

Posted By:   Adrian_Ber
Posted On:   Friday, November 2, 2007 12:15 PM

I'm using a CSS grammar and wondering how can I write a rule to distinguish between a number and a value.
If I have the input ""123"" and ""123px"" I want to know that ""123"" is a number and ""123px"" is a length.
I'm new to ANTLR and using v3.

Thanks a lot.

About | Sitemap | Contact