Improved hbcht.
This commit is contained in:
parent
a0c6a1da98
commit
c7ffa5f5f9
|
@ -13,6 +13,37 @@ Half-Broken Car in Heavy Traffic is a difficult programming language with only
|
|||
|
||||
hbcht is a Python 3.1+ combined compiler/interpreter for the language.
|
||||
|
||||
** Example program
|
||||
|
||||
#+BEGIN_SRC
|
||||
; Increment the first memory cell once without changing the other cells.
|
||||
|
||||
> ^ <
|
||||
> v <
|
||||
#
|
||||
^< >
|
||||
^
|
||||
^ ^<>
|
||||
^
|
||||
> ^<
|
||||
^
|
||||
> v < o v
|
||||
v
|
||||
v
|
||||
< > v
|
||||
v v
|
||||
v v
|
||||
v v
|
||||
v v
|
||||
> ^ <
|
||||
#+END_SRC
|
||||
|
||||
When compiled, this can be called as
|
||||
: ./test 51
|
||||
which will return
|
||||
: 0: 52
|
||||
because 51 + 1 = 52.
|
||||
|
||||
** Language documentation
|
||||
|
||||
This is the official documentation of HBCHT.
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -13,6 +13,7 @@ These are my projects, new and old.
|
|||
#++exec
|
||||
#+BEGIN_SRC python3
|
||||
top_projs = (
|
||||
'hbcht',
|
||||
'mege',
|
||||
'pumila',
|
||||
'desurveil',
|
||||
|
|
Loading…
Reference in New Issue