QR Script is an artsy programming language that is designed to fit into a 57x57 QR code (~1,187 characters).
.gitignore | ||
GlobalUsing.cs | ||
Glyph.csproj | ||
GlyphInterpreter.cs | ||
LICENSE | ||
Program.cs | ||
README.md |
🧪 Glyph
Glyph is a human-readable esoteric programming language that is designed to fit into a 57x57 QR code (~1,187 characters). With the initial implantation scaffold together using GPT, it is written C# with the interpreter based on Dynamic Expresso.
🧾 Program Structure
Each line is a command.
verb subject object [modifier]
⌨️ Commands
Verb | Function | Example |
---|---|---|
say |
print to stdout | say hello world |
set |
assign value | set x 42 |
add |
arithmetic add | add x 1 |
sub |
arithmetic subtract | sub x 3 |
mul |
multiply | mul x 2 |
div |
divide | div x 10 |
if |
conditional | if x > 10 goto @end |
goto |
jump to label | goto @start |
def |
define function | def square x |
ret |
return from func | ret |
call |
call function | call square 3 |
inp |
input from user | inp name |
cmp |
compare values | cmp x y |
mod |
modulo | mod x 5 |
end |
stop execution | end |
📜 License
I license this project under the GPL v3 license - see LICENSE for details.