Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aloussase/sotest
A tiny scripting language to test loading shared libraries
https://github.com/aloussase/sotest
Last synced: 1 day ago
JSON representation
A tiny scripting language to test loading shared libraries
- Host: GitHub
- URL: https://github.com/aloussase/sotest
- Owner: aloussase
- Created: 2024-10-31T12:19:32.000Z (7 days ago)
- Default Branch: master
- Last Pushed: 2024-10-31T12:29:57.000Z (7 days ago)
- Last Synced: 2024-10-31T13:30:18.213Z (7 days ago)
- Language: C
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sotest
A tiny interpreter for loading and testing shared libraries.
## Installation
You'll need a C compiler and CMake installed.
```
git clone https://github.com/aloussase/sotest
cd sotest
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build build
```## Usage
To spawn a REPL:
```
./build/sotest
```To evaluate the contents of a file:
```
./build/sotest
```Replace `` with the name of your script. You can use the included
`test.sc` script to test the interpreter if you want.## Demo
### Interactive mode
![interactive](./assets/interactive-mode.png)
### Batch mode
![batch](./assets/batch-mode.png)