Re-Visiting the Parser in CFEclipse

Posted by Mark Drew on code on July 21, 2008

Tagged under cfeclipse

As some people that have been using CFEclipse for a while might have realised, there is a parser that figures out the content in a CFML file.

So far, this parser has been embedded with Eclipse specific code, so I have started re-factoring this into its own project so we can test various files and use it as a project by itself.

The idea is that I can scan whole folders for files and parse them and keep track of the errors and things that we would expect to find. Also, this re-factoring means that other developers and help me figure out speed improvements and bug fixes without getting caught up in Eclipse code.

I haven’t finished porting it (but its nearly there) and you can check out the code from: http://svn.cfeclipse.org/org.cfeclipse.cfml.parser/.

You should be able to check it out into Eclipse and run the org.cfeclipse.cfml.parser.tests.ParserTest.java class passing in an argument for the location of the files you want to parse.

There are still compilation errors with it, so if you want to have a go, you can get the code and get fiddling.

One thing to note, is that you need to use your http://trac.cfeclipse.org username and password to get the code.




comments powered by Disqus