-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Here is the wiki!
You must have gcc
, bison
or yacc
, flex
or lex
and glib
for modify.
If you want not modify, you must have gcc
, and go to step 1, 5, 6 and 7.
If you want execute example-programm, just go to step 1 and 7.
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.lex
Enter this command (if you use bison
):
bison -d syntaxe_4u.y
Enter 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 4u
Enter this command (if you use gcc
) in a terminal (CMD):
./4u programm.4u
<programm.4u> is the name of your programm.
Enter this command:
gcc programm.c
<programm.c> is the name of your programm (compiled).
Enter this command:
./a.out
It'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):
cd
All 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.