More debug features, update README, new makefile

This commit is contained in:
2025-12-08 15:06:29 +11:00
parent bd1a47d118
commit 2ca3789024
8 changed files with 354 additions and 21 deletions

View File

@@ -17,7 +17,44 @@ Now that Ground's features have mostly been finalised, this interpreter can be b
*so far, only tested on Linux, but hopefully should work on other platforms as well
Progress marker:
## Building
To build, make sure Make is installed. Then, run:
```bash
make
```
Ground can also be embedded as a library in other programs. Run this code to generate library files:
```bash
make library
```
File structure of the build directory:
```
build
├── bin
│   └── ground
├── include
│   └── groundvm.h
├── lib
│   └── libgroundvm.so
└── obj
├── exe_interface.o
├── exe_interpreter.o
├── exe_lexer.o
├── exe_main.o
├── exe_parser.o
├── exe_types.o
├── lib_interface.o
├── lib_interpreter.o
├── lib_lexer.o
├── lib_parser.o
└── lib_types.o
```
## Progress marker
- [x] Lexer
- [x] Parser