Skip to content

Commit 70f0615

Browse files
authored
Update README.md
1 parent 675244f commit 70f0615

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

README.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -88,83 +88,83 @@ Met le ici
8888
You must have `gcc`, `bison` or `yacc`, `flex` or `lex` and `glib`.
8989

9090
---
91-
> **Warning!** For all commands, do not enter the `$` or the `>`!
91+
> **Warning!** For all commands, do not enter the `$`, the `#` or the `C:\>`!
9292
---
9393

9494
### 1: Go to your directory
9595

9696
#### Windows
9797

98-
On Windows, enter this command:
98+
On Windows, type this command:
9999

100100
```bat
101-
> cd <directory name>
101+
cd <directory name>
102102
```
103103

104104
`<directory name>` is the directory where you installed folder "4u vX.X.X" (X.X.X is your version number).
105105
The path is like `C:\Users\user\Documents\src\'4U 0.0.0'`
106106

107107
#### Linux
108108

109-
On Linux, enter this command:
109+
On Linux, type this command:
110110

111111
```bash
112-
$ cd <directory name>
112+
cd <directory name>
113113
```
114114

115115
`<directory name>` is the directory where you installed folder "4u vX.X.X" (X.X.X is your version number).
116116
The path is like `/home/user/Documents/src/'4U 0.0.0'` or `~/Documents/src/'4U 0.0.0'`.
117117

118118
### 2: Compile the lexical analyzer
119119

120-
Enter this command (if you use `flex`):
120+
Type this command (if you use `flex`):
121121

122122
```bash
123-
$ flex -o lexique_4u.c lexique_4u.lex
123+
flex -o lexique_4u.c lexique_4u.lex
124124
```
125125

126126
### 3: Compile the syntax analyzer
127-
128-
Enter this command (if you use `bison`):
127+
128+
Type this command (if you use `bison`):
129129

130130
```bash
131-
$ bison -d syntax_4u.y
131+
bison -d syntax_4u.y
132132
```
133133

134134
### 4: Compile the compiler
135135

136136
#### v0.x.x
137137

138-
Enter this command (if you use `gcc`) to compile the compiler:
138+
Type this command (if you use `gcc`) to compile the compiler:
139139

140140
```bash
141-
$ gcc lexique_4u.c syntax_4u.tab.c generation_code.c `pkg-config --cflags --libs glib-2.0` -o 4u
141+
gcc lexique_4u.c syntax_4u.tab.c generation_code.c `pkg-config --cflags --libs glib-2.0` -o 4u
142142
```
143143

144144
#### v1.x.x
145145

146-
Enter this command (if you use `gcc`) to compile the compiler:
146+
Type this command (if you use `gcc`) to compile the compiler:
147147

148148
```bash
149-
$ gcc lexique_4u.c syntax_4u.tab.c generation_code_c.c generation_code_js.c `pkg-config --cflags --libs glib-2.0` -o 4u
149+
gcc lexique_4u.c syntax_4u.tab.c generation_code_c.c generation_code_js.c `pkg-config --cflags --libs glib-2.0` -o 4u
150150
```
151151

152152
### 5: Execute the 4U program
153153

154-
Enter this command (if you use `gcc`) in a terminal to transform the 4U code in C:
154+
Type this command (if you use `gcc`) in a terminal to transform the 4U code in C:
155155

156156
```bash
157-
$ ./4u program.4u
157+
./4u program.4u
158158
```
159159

160160
`<program.4u>` is the name of your program.
161161

162162
### 6: Compile the program
163163

164-
Enter this command to compile the C program:
164+
Type this command to compile the C program:
165165

166166
```bash
167-
$ gcc program.c
167+
gcc program.c
168168
```
169169

170170
`<program.c>` is the name of your program (compiled).
@@ -173,18 +173,18 @@ $ gcc program.c
173173

174174
#### Windows
175175

176-
Enter this command to run the compiled program:
176+
Type this command to run the compiled program:
177177

178178
```bat
179-
> ./a.exe
179+
./a.exe
180180
```
181181

182182
#### Linux
183183

184-
Enter this command to run the compiled program:
184+
Type this command to run the compiled program:
185185

186186
```bash
187-
$ ./a.out
187+
./a.out
188188
```
189189

190190
### 8: End
@@ -193,7 +193,7 @@ It's OK! Your code was executed! If you want to re-execute your code (and it's n
193193
Else, you can execute (if you want):
194194

195195
```bash
196-
$ cd
196+
cd
197197
```
198198

199199
## Compile Command
@@ -207,8 +207,9 @@ You can go [here](/commands) for more informations.
207207
To compile command, here is a simple way to do it on Windows. Go to the 4U command file and type:
208208

209209
```bat
210-
> mkdir bin
211-
> gcc *.c -o bin/4U
210+
C:\> mkdir bin
211+
212+
C:\> gcc *.c -o bin/4U
212213
```
213214

214215
It will create an executable. If you want to use it all days, we really recommend add the `bin/` folder into the PATH.

0 commit comments

Comments
 (0)