To run the program with Make navigate to src/main/java you could use these commands:
make
make tree // Generate the parsetree
make test // Run the input.txt
make clean // Remove autogenerated and out files
To run the program with IntelliJ and Maven, sync the pom.xml file and do the following steps.
- Go to Edit Configuration
- Select input.txt and add external tool
- Press the add symbol
- Fill out settings:
- Program: make
- Arguments: hwsimLexer.java (NB: To add make clean, add a new external tool and write "clean" in arguments instead)
- Working Directory:
$ProjectFileDir$ /src/main/java
- You should now be able to run the input.txt file.