Skip to content

bsoelch/OneChar.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OneChar.js

Online interpreter for Itr, ForWhile and OneChar

Usage

Run the HTML-file.

Enter Code in the large box on the left, click the > button to run it.

IO

The contents of standard input can be entered in the Input: box, interactive input is not supported.

The output of the programs will be printed to the Output: box.

Supported Languages

The interpreted uses ForWhile by default, the language can be changed using lang=? in the query of the URL.

Array-based golfing language

Hello, World:

"Hello World!"

Stack-based programming language without infinite Loops

Hello, World:

"Hello World!"(,#)

Stack-based programming language

Hello, World:

"Hello World!"(,#)

Minimalistic programming language

Hello, World:

+[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+.

BrainForWhile

Brainfuck with for-loops instead of while-loops

Hello, World:

++++(+>+<)(>(>++>+++>+++>+<<<<)>+>+>->>+<<<<<<)>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

Similar to regular Brainfuck with the following changes:

  • ] does not jump back to the start of its block
  • ( starts a for-loop setting the loop-counter to the current cell If the current cell is negative, the loop-counter will be set to its absolute value and the roles of + and - will be swapped within the loop.
  • ) decrements the loop counter, jumps back to the matching ) if the loop-counter is non-zero and the current cell is positive

About

Javascript interpreter for OneChar and ForWhile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published