Skip to content

ConorOBrien-Foxx/ecndpcaalrlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

!@#$%^&*()_+

A symbolic language

Command Effect
! duplicate top member of stack
@ pops top of stack and prints that popped number as a character
# pops top of stack and prints that popped number as a number
$ swaps the top two members of the stack
% rotates the stack by 1 to the right (top goes to bottom)
^ increments the top of the stack
& pops top of stack and pushes the number at the popped position
* reads 1 byte of input from STDIN and adds it to top of stack
( open loop
) close loop
_ negate top of stack
+ pops top of stack and adds it to the new top of stack
? prints state info

All other characters push their values. Popping from an empty stack pushes 0.

Snippets

  • pop top of stack: !_++

About

!@#$%^&*()_+ a symbollic language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages