Esoteric programming language where all you've got is a deck of cards
License
michaeldv/ante
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
ANTE Ante is an esoteric programming language where all you've got is a deck of playing cards. FOUR REGISTERS, ZERO INITIALIZED♦ ♥ ♠ ♣ OPERATORS, SEQUENTIAL PRECEDENCE♦ # Add♥ # Multiply♠ # Subtract♣ # Divide SYNTAX 2-9[x]... # Assignment; the suit of first card designates # target register A[x] # Current value of register [x] (the Ace aces it) K[x] # Jump to the last Q[x] label if A[x] != 0 (go see the Queen) Q[x] # Label (the Queen is waiting) J[x] # Print A[x] as character (Jack shows the goods) 10[x] # Print A[x] as number Kings and Queens can have twins, triplets, etc. of the same suit. While single K♥ goes to Q♥ , K♥ K♥ twins will go to Q♥ Q♥ and so on. EXAMPLE # 15.times { |i| print i } 3♥ 5♥ #♥ = 3 * 5 Q♥ # Label 10♦ # Print current value of♦ A♦ 3♦ 2♠ #♦ =♦ + 3 - 2 A♥ 3♠ 2♦ #♥ =♥ - 3 + 2 K♥ # Jump to Q♥ if♥ != 0 For more examples check out samples/*.ante files including Yusuke Endoh's mind-boggling Ante quine (the program that prints itself): https://github.com/michaeldv/ante/blob/master/samples/quine.ante LICENSE Copyright (c) 2013-2014 Michael Dvorkin Ante is freely distributable under the terms of MIT license.
About
Esoteric programming language where all you've got is a deck of cards
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published