| Crates.io | gs2compiler |
| lib.rs | gs2compiler |
| version | 0.2.3 |
| created_at | 2024-08-14 06:01:06.226637+00 |
| updated_at | 2025-01-20 00:35:57.530737+00 |
| description | Compiles GS2 source code into GS2 bytecode. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1336902 |
| size | 6,257,452 |
This is a compiler for the Graal Script 2 (GS2) language.
Before building, clone the repository and recursively clone the submodules:
git clone git@github.com:xtjoeytx/gs2-parser.git --recursive
You can build the project using CMake:
mkdir build
cd build
cmake ..
make -j $(nproc)
You can use the following command:
$ ./gs2test ../scripts/asd2.txt
Argc: 2
Args: ../scripts/asd2.txt
Compiling file ../scripts/asd2.txt
Compiled in 0.001322 seconds
-> saved to ../scripts/asd2.gs2bc
Total length of bytecode w/ headers: 160