Giter Site home page Giter Site logo

andrewcoon / turing-complete-language Goto Github PK

View Code? Open in Web Editor NEW

This project forked from electro-corp/turing-complete-language

0.0 0.0 0.0 27.28 MB

Shell 0.05% C++ 0.70% Python 96.51% C 0.62% Nu 0.05% Fortran 0.01% PowerShell 0.13% Nix 0.01% Cython 1.93% Perl 0.01%

turing-complete-language's Introduction

JBBFI (with IDE) (Java But Better, Fuck It)

  • Can move pointer
  • Can add or substract value
  • can loop
  • can do i/o

Compile

python3 main.py file

IDE

python3 edit.py

Syntax:

  • inc increment value at pointer
  • dec decrment value at pointer
  • right move pointer right
  • left move pointer left
  • out output value at pointer location
  • input ask for input and store at location
  • goto takes an input of a number and moves the pointer to that location
  • define add variable
  • set set var to something
  • push print variable
  • loop loop
  • if if

Loop Example:

loop // define loop
5 // how many times to run looop
... commands to run
endloop

Variable Example

define vartest
set vartest 5
push vartest

Goto Example

goto 4 // Moves the pointer to location 4

If Examples:

define var1
define var2
set var1 3
set var2 4

if var1 == var2
// Output will be false

if var1 != var2
// Output will be True

if var1 >= var2
// Output will be false

if var1 <= var2
// Output will be true

if var1 > var2
// Output will be false

if var1 < var2
// Output will be true

turing-complete-language's People

Contributors

electro-corp avatar andrewcoon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.