Click here to Skip to main content
15,887,338 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone, please I need help in generating the default files in javaCC using Eclipse. I have installed JavaCC on my laptop and it's working. I'm to write PARSER_BEGIN(MyFile) and PARSER_END(MyFile) and be able to generate these files:

MyFile.java - contains the syntactical analyzer
MyFileTokenManager.java - contains the lexical analyzer
MyFileConstants.java - contains different constants for the analysis process.
Please how do I generate these files from my Eclipse? Thanks for any help.

What I have tried:

public class MyFile {
	
	PARSER_BEGIN(MyFile)
	
	
	PARSER_END(MyFile)

}


This file is meant to be a java.jj file and not MyFile.java but I don't know how to create it the .jj file and generate the default files.
Posted
Updated 21-Oct-20 22:37pm
v5

1 solution

 
Share this answer
 
Comments
UT7 23-Oct-20 22:55pm    
@Richard MacCutchan, sorry for my late response, thanks a lot.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900