Skip to content
( a fundamentally new programming language )>πŸ“
C++ Ruby Java ABAP Scala Python Other
Branch: master
Clone or download

Latest commit

Latest commit ba2757e Aug 4, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ABAP
CSharp Update README.md May 5, 2015
Clojure Clojure Impl2 Dec 17, 2014
F# F# implementation Apr 28, 2015
Go Go interpreter syntax check (#37) Oct 28, 2018
Haskell Update Haskell/README.hs Dec 10, 2014
Java Petooh-to-Java bytecode compiler Dec 14, 2014
JavaScript js fixes Dec 26, 2014
LLVM-compiler Compiler to LLVM IR (#39) Aug 4, 2019
PHP PHP implementation Jan 6, 2015
Perl JavaScript implementation Dec 10, 2014
Python Highly-pythonic version of PETOOH interpreter Dec 10, 2014
Ruby Refactor, add comments. Dec 9, 2014
Scala Scala PETOOH interpreter Dec 16, 2014
win-compiler
LICENSE Add some license Dec 9, 2014
README.md
test.koko initial commit Jun 6, 2012

README.md

πŸ“ PETOOH – a fundamentally new programming language

Basics

Kudah increment the data pointer (to point to the next cell to the right)
kudah decrement the data pointer (to point to the next cell to the left)
Ko increment (increase by one) the byte at the data pointer
kO decrement (decrease by one) the byte at the data pointer
Kukarek output the byte at the data pointer as an ASCII encoded character
Kud if the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command
kud if the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command

Code sample

KoKoKoKoKoKoKoKoKoKo Kud-Kudah
KoKoKoKoKoKoKoKo kudah kO kud-Kudah Kukarek kudah
KoKoKo Kud-Kudah
kOkOkOkO kudah kO kud-Kudah Ko Kukarek kudah
KoKoKoKo Kud-Kudah KoKoKoKo kudah kO kud-Kudah kO Kukarek
kOkOkOkOkO Kukarek Kukarek kOkOkOkOkOkOkO
Kukarek

Try now!

You can’t perform that action at this time.