Skip to content

alieron/cardinal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardinal

Stack-based 2D esoteric programming language inspired by Befunge.

Commands

Command Description
0 - 9 Push corresponding number onto the stack
$ Pop top of stack and discard
. Pop top of stack and output as integer
, Pop top of stack and output as ASCII character
# Skip next command in current direction
@ End program
: Duplicate top of the stack
> Direction right
< Direction left
^ Direction up
v Direction down
? Pop top of stack, if value=0 reflect direction
+ Add: pop a and b, push b+a
- Subtraction: pop a and b, push b-a
* Multiplication: pop a and b, push b*a
/ Integer division: pop a and b, push b/a
% Modulo: pop a and b, push the remainder of b/a
& Accept integer from user and push it

Plans

  1. C interpreter, learn multifile C programming
  2. Language server, learn about language servers, possibly Zig or Rust
  3. Prove turing completeness, learn about proof assistants and their relevance to SWE, likely Lean 4
  4. Other interpreters, possibly Zig and Rust

About

Stack-based esoteric programming language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors