-
Couldn't load subscription status.
- Fork 0
Home
Here is the wiki!
You must have gcc, bison or yacc, flex or lex and glib execute.
On Windows, enter this command:
cd <directory name><directory name> is the directory where you installed folder "4u vX.X.X" (X.X.X is your version number).
It's like C:\Users\user\Documents\4U\4U 0.0.0
On Linux, enter this command:
cd <directory name><directory name> is the directory where you installed folder "4u vX.X.X" (X.X.X is your version number).
It's like /home/user/Documents/4U/4U\ 0.0.0 (for with space enter \ ).
Enter this command (if you use flex):
flex -o lexique_4u.c lexique_4u.lexEnter this command (if you use bison):
bison -d syntaxe_4u.yEnter this command (if you use gcc):
gcc lexique_4u.c syntaxe_4u.tab.c generation_code.c `pkg-config --cflags --libs glib-2.0` -o 4uEnter this command (if you use gcc) in a terminal (CMD):
./4u program.4u<program.4u> is the name of your program.
Enter this command:
gcc program.c<program.c> is the name of your program (compiled).
Enter this command:
./a.outIt's OK! Your code was executed! If you want to re-execute your code (and it's not changed), you can just do this command (step 7). Else, you can execute (if you want):
cdAll files are important.
In V0.0.0, generation_code.c, lexique_4u.lex, syntaxe_4u.y and 4u.h are very important (and the program *.4u).
Other are compiled files.