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