2022-12-09 04:45:46 +00:00
|
|
|
```
|
2022-12-09 04:46:43 +00:00
|
|
|
/* _ _ _
|
|
|
|
| | / | / /
|
|
|
|
| |__| ||__ _ _ __ __ _ / /
|
|
|
|
| '_ | |/ ' | '_ \ / _' | / /
|
|
|
|
| \_|| | || | | | | /_| | /_/
|
|
|
|
\___/_____/___| |__,_ / _
|
|
|
|
|____/ */
|
2022-12-09 04:45:46 +00:00
|
|
|
```
|
|
|
|
# blang!
|
|
|
|
the bang language
|
2022-12-09 04:41:52 +00:00
|
|
|
|
2022-12-09 04:45:46 +00:00
|
|
|
Public domain. 2022 DTB.
|
|
|
|
|
2022-12-10 02:59:24 +00:00
|
|
|
## Examples
|
2022-12-09 04:45:46 +00:00
|
|
|
|
2022-12-10 02:59:24 +00:00
|
|
|
### true(1)
|
2022-12-09 04:45:46 +00:00
|
|
|
```
|
2022-12-10 02:05:38 +00:00
|
|
|
; initialize hand to 0
|
|
|
|
^
|
|
|
|
|
2022-12-10 00:46:32 +00:00
|
|
|
; set the chart pointer to 0 - this destroys the chart
|
|
|
|
; and the program exits with the value of the hand
|
|
|
|
*
|
2022-12-09 04:45:46 +00:00
|
|
|
```
|
|
|
|
|
2022-12-10 02:59:24 +00:00
|
|
|
### Hello world:
|
2022-12-09 04:45:46 +00:00
|
|
|
```
|
2022-12-10 02:05:38 +00:00
|
|
|
; the <.> construct uses '<' to literally 'palm' the next value
|
|
|
|
; (store into hand), does so, and uses '>' to 'toss' (output hand's value)
|
2022-12-09 04:45:46 +00:00
|
|
|
<H><e><l><l><o><,>< ><w><o><r><l><d><!><
|
2022-12-10 00:46:32 +00:00
|
|
|
>^*
|
2022-12-09 04:45:46 +00:00
|
|
|
```
|