• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parsing java  RSS feed

 
Stewart Griffin
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone,
I want to be able to parse a java file using java.
I was wondering does anyone have any experience with this, or does anyone have any advice before i start?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never done it, but just a quick note - take a look at StreamTokenizer. Normally it's a bit overcomplex for use, but if you're specifically parsing Java files (or other C-like syntax) it's fairly helpful. Still a lot of work for you to do, but it's a start...
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
try javacc (a java compiler compiler).
here is an article in javaworld
as far is i remember there is a java 1.2 example grammer in the examples. couldnt reach the metamata website (see resources of the article) right now. meybe later.
karl
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!