<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Brian Nelson wrote:
<blockquote
cite="mid:B816EF30-6F6B-4E3B-88E6-F3954CBDD9A6@neuesoftware.com"
type="cite">
<pre wrap="">Let me start off by saying that my background is not in parsers or
compilers.
I am trying to parse CSS files. I have found a working grammar and the
source works when I pass a string of random CSS I have generated. I
now have no clue as to how to hook into those points and get the
results of the lexing or parsing. I need to assemble objects for
rules, properties, etc.
I am not looking for an answer so much as I am looking for available
resources on-line, examples, or sample projects that I can learn to do
what I need to do.
Or maybe I am looking for someone to tell me I am going the wrong
route about the problem, and I should continue to do my own parsing as
it's not necessary to use ANTLR for a simple description language. :)
--
Brian Nelson
Software Engineer, Neue Software
e. <a class="moz-txt-link-abbreviated" href="mailto:brian@neuesoftware.com">brian@neuesoftware.com</a>
List: <a class="moz-txt-link-freetext" href="http://www.antlr.org/mailman/listinfo/antlr-interest">http://www.antlr.org/mailman/listinfo/antlr-interest</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://www.antlr.org/mailman/options/antlr-interest/your-email-address">http://www.antlr.org/mailman/options/antlr-interest/your-email-address</a>
</pre>
</blockquote>
<font face="Lucida Sans">ANTLR is fine for CSS - I use it myself for
that.</font><br>
<br>
<br>
What you should do is download the example projects (examples.zip or
.tgz or something) on the download pages and take a quick look through
those grammars. Next stop is the Wiki, and if you can afford it, the
ANTLR Reference book is a good purchase and will save you a lot of
time. Teh examples and the Wiki should get you through the basics
though. Try the 5 minute introduction.<br>
<br>
Jim<br>
</body>
</html>