Artifact 2eaf122a47d02fbdf2a97e420bbd5177326f1c180f952bb3d2fae1c77bd7f66c:
- File README.md — part of check-in [b771f5d526] at 2021-10-13 18:18:02 on branch trunk — EDIT Readme with updates about slang_syntax.h, clarification that slang is a toy language, and including the initial references that birthed the concept (user: hattyhacker size: 1019)
The "simple" lang...
Slang is a purposefully weird, toy scripting language that seeks to evaluate basic programs in a REPL environment that can take user input, or a file, and run it. Influences are raw-text notes, shopping/todo lists, (Intel syntax) Assembly, Gravity, HolyC, Ocaml, Pseudocode, and Nim.
Requirements
Default development environment: OpenBSD (amd64) with default cc (clang).
C99-capable C compiler.
Dependencies
There are no external dependencies, though the following C libs are used:
stdio.hstdlib.hstring.h
Building
The build system currently uses ksh, though the script is intended to be minimalistic to work on other shells as well.
It'll eventually mosey on over to make but for now, meh...
cc main.c -o slang or ./make.sh
Modifying
To quickly change the syntax of slang to meet yer likin', edit the barrage of #define statements in the slang_syntax.h file.