Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 43ee9e6

Browse files
ElectruxElectrux
authored andcommitted
fixed some stuff in book
1 parent ad2c586 commit 43ee9e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

book/src/01-install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This variable will allow you to set a `PREFIX_DIR` directory for installation of
3737

3838
**NOTE** that once the script is run with a `PREFIX_DIR`, manually moving the generated files to desired directories will not work since the Ethereal's codebase uses this `PREFIX_DIR` internally itself.
3939

40-
Generally, the `/usr` or `/usr/local` directories are used for setting the `PREFIX_DIR`, however that is totally up to you. Default value for this is the directory `/usr/local` is located.
40+
Generally, the `/usr` or `/usr/local` directories are used for setting the `PREFIX_DIR`, however that is totally up to you. Default value for this is the directory `build/` inside the source code folder.
4141

4242
The script will create these directories with respect to `PREFIX_DIR`:
4343
* `buildfiles/et` -> `$PREFIX_DIR/bin/`
@@ -50,7 +50,7 @@ PREFIX_DIR=/usr/local cmake .. && make install
5050
```
5151

5252
### $DEBUG
53-
This variable, if set, will disable all compiler optimizations and will cause the interpreter to start displaying its internal execution stack values while running any program. This will be helpful for debugging the language codebase, but otherwise, do **NOT** use it.
53+
This variable, if set, will disable all compiler optimizations and will cause the interpreter to start displaying its internal execution stack values while running any program. This will be helpful for debugging the language codebase, but otherwise, do **NOT** use it as it will greatly slow the execution proces down.
5454

5555
It can be used as follows:
5656
```bash

book/src/02-hello-world.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ println('hello, world');
66
```
77

88
Save the code in a file named, say `hello.et`, and run it using the `et` binary which we built in the [installation](./01-install.md) document.
9-
Assuming that no `PREFIX` was set, the binary would be created in the `bin/` directory of the cloned repostory. Hence, the command would be:
9+
Assuming that no `PREFIX` was set, the binary would be created in the `build/bin/` directory of the cloned repostory. Hence, the command would be:
1010
```bash
11-
./bin/et hello.et
11+
./build/bin/et hello.et
1212
```
1313

1414
This will output `hello world` on the display.

0 commit comments

Comments
 (0)