I'm working on building a compiler for a class and I'm trying to get JFlex working in Eclipse, but for some reason I can't seem to get the program to recognize JFlex. When I call Yylex eclipse tells me Yylex cannot be resolved to a type.
I've downloaded the latest JFlex file and extracted it in the source folder, since I thought that would be easiest, but it still didn't work. So I extracted JFlex to a different location and editted the java build path for this project. I clicked "Add External Class Folder..." and selected the jflex folder I extracted, but still no luck.
I know the code is good because I can run it using the make file provided on school computers with JFlex already installed and it compiles and runs fine. But for whatever reason I cannot get eclipse to recognize JFlex.
Has anyone used JFlex in eclipse and have some tips on how to get it to work? Is there an import statement I'm missing or something?