-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
-
Create a folder named FLC_Tools in the desired path (e.g. C:\Program Files, C:\Program Files (x86)).
-
Download the RAR file from the address below then copy the files within (java_cup_v11_draw_tree and jflex-1.8.2 ) to the FLC_Tools folder you’ve created. https://www.skenz.it/repository/compilers/progs/flctools.zip
-
From the search bar type either cmd or Command Prompt and open it with administrator privileges then execute the commands below:
cd [installdir]\FLC_Tools\java_cup_v11_draw_tree\java_cup
javac *.java runtime\*.java ..\StdDraw.java
- Search for “environment variables” and click on “Edit the system environment variables”. Then go to Environment Variable or follow the path below:
Settings → System → About → System Info → Advanced System Settings
- Create an environment variable called JFLEX_HOME with value:
[installdir]\FLC_Tools\jflex-1.8.2
(replace [installdir] appropriately)
- Add to the Path environment variable the values below:
[installdir]\FLC_Tools\jflex-1.8.2\bin
[installdir]\FLC_Tools\java_cup_v11_draw_tree\java_cup;.
(remember the dot at the end)
- Add to the CLASSPATH environment variable (or create it if it does not exist) the value:
[installdir]\FLC_Tools\java_cup_v11_draw_tree;.
(remember the dot at the end)
-
To change the FLC_Tools folder privileges and give the Users full control right click on the FLC_Tools folder and click Properties. In the new window, move to the Security tab and click the Edit button next to “To change permissions, click Edit”. Select the Users group and click on Full control under Allow. Then Apply, OK, and then again OK.
-
To verify that the programs have been installed correctly, open a command prompt (cmd) and enter the command below, a graphical window should be opened:
jflex
- For CUP type the code below into the command prompt and if it is correctly installed you should see nothing in the terminal. To stop it press CTRL-C:
java java_cup.Main
- Open the Project Sigun and Command Prompt. The project has a batch file, run this on the command prompt.
-
Create a folder named FLC_Tools in the desired path (e.g. C:\Program Files, C:\Program Files (x86)).
-
Download the RAR file from the address below then copy the files within (java_cup_v11_draw_tree and jflex-1.8.2 ) to the FLC_Tools folder you’ve created. https://www.skenz.it/repository/compilers/progs/flctools.zip
-
From the search bar type either cmd or Command Prompt and open it with administrator privileges then execute the commands below:
cd [installdir]\FLC_Tools\java_cup_v11_draw_tree\java_cup
javac *.java runtime\*.java ..\StdDraw.java
- Environment variables must be set before running CUP and Jflex. Open the file in your home directory to set the environment variables “.zshrc”:
cd
touch .zshrc
open .zshrc
- After opening the “.zshrc” file, add the following lines to the top:
PATH=$PATH:.:/Users/user/compilers/java_cup_v11_draw_tree/java_cup/:/Users/user/compil ers/jflex-1.8.2/bin
export PATH
CLASSPATH=.:/Users/user/compilers/java_cup_v11_draw_tree/
export CLASSPATH
- To ensure that the programmes were properly installed, launch a command prompt (cmd) and type:
jflex
java java_cup.Main
java java_cup.MainDrawTree
- jflex → A new window must be opened.
- java java_cup.Main → Nothing appears in the terminal if it is properly installed.
- java java_cup.MainDrawTree → Nothing appears in the terminal if it is properly installed. You can stop it by pressing CTRL-c.