Bind
A concatenative programming language
Source code: not available yet
Bind is a staticly typed forth-like concatenative programming language with some high level concepts made for fun.
The language only specifies itself. No standard library, runtime or mandatory compiler/interpreter features.
f[puts:1:nor] ;; Declare FFI function puts with 1 argument and no return type
"Hello" puts ;; Say hello
Hello program
Keywords
| if | else | do | while | end |
Blocks
Block is a way to declare or define something.
Blocks has <IDENT>[<CONTENT>]<:TYPE?><IDENT?> syntax.
| Blocks list: | |
|---|---|
| d[<name>:<type>...] | Global variables definition |
| s[<fields>...]<:type?> <name> | Structure declaration |
| e[<fields>...] <name> | Enum declaration |
| w[<text>] <name> | New word definition |
| f[<func>:<arg count>:<r/nor>...] | Foreign functions declaration |
TODO!: Write about s[]:type struct syntax, about ffi function calling, about interfacing with OS and reference compiler technical details