Finish Chapter 16
Implement basic parsing / scanner Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
25
README.md
25
README.md
@@ -22,20 +22,16 @@ make debug
|
||||
make bear
|
||||
```
|
||||
|
||||
## Run (current behavior)
|
||||
|
||||
The current `main` builds a tiny test chunk and disassembles it—there’s no REPL or script runner yet.
|
||||
## Usage
|
||||
|
||||
Run a file
|
||||
```sh
|
||||
./bin/clox
|
||||
clox [file]
|
||||
```
|
||||
|
||||
Example output:
|
||||
|
||||
```
|
||||
== test chunk ==
|
||||
0000 123 OP_CONSTANT 0 '1.2'
|
||||
0002 | OP_RETURN
|
||||
Run Repl
|
||||
```sh
|
||||
clox
|
||||
```
|
||||
|
||||
## Layout
|
||||
@@ -47,12 +43,3 @@ obj/ # build objects (generated)
|
||||
bin/ # executable output (generated)
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
- Tracks the book’s **clox** implementation; commits may follow chapters.
|
||||
- `compile_commands.json` can be generated via `make bear` for editor tooling.
|
||||
|
||||
## License
|
||||
|
||||
Private / for learning.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user