Giter Club home page Giter Club logo

ark's Introduction

logo CodeFactor

The programming language that is somewhat useful.

install

Ark interpreter
curl -O https://xnxrijmguoktvvhvbpth.supabase.in/storage/v1/object/public/builds/ark.zip
Shards
curl -O https://xnxrijmguoktvvhvbpth.supabase.in/storage/v1/object/public/builds/shards_2.0.0.zip

Using the interpreter:

It will look like: $~ Ark x.x.x: <souce code>

Usage

  • ! Outputs the next Alphanumeric character in the code. | Output
  • ^ Outputs the stack. | Output
  • > Adds the next numeric character to the stack. | Stack Manipulation
  • < Asks for Input and adds it to the stack. | Input/Stack Manipulation
  • + Add the top two rows in the stack and add the result to the stack. | Math/Stack Manipulation
  • - Subtract the second row by the top row in the stack and add the result to the stack. | Math/Stack Manipulation
  • * Multiply the top two rows of the stack and add the result to the stack. | Math/Stack Manipulation
  • / Divide the top row by the second row in the stack and add the result to the stack. | Math/Stack Manipulation
  • # Clear the stack. | Stack Manipulation
  • { Used to initialize a function. (like python's: "def") | Functions
  • } Used to end the initialization of a function. | Functions
  • [ Used to initialize a multiple-character addition. | Stack Manipulation
  • ] Used to end the initialization of a multiple-character addition. | Stack Manipulation
  • ~ Used to call a function. | Functions
  • ` Used to execute a function alongside the main program | Functions
  • @ Stops the program if a runtime stability chech fails. | Runtime Stability
  • (param1==param2) If statment. If param1 is ==, !=, <=, >= to param2, then execute the function. | Functions

Examples:

A Hello World program:

!H!e!l!l!o! !W!o!r!l!d

Each character is individually read then printed

Prints Hello World

Mathematics:

@>1>1+^:

Adds 1 to the stack twice, then adds the sum of the top two digits in the stack to the top of the stack, resulting in 1, 1, 2.

Prints: 112

Infinite loop:

{~}~

Similar to python's s = "exec(s)"; exec(s) the function's code is to run itself, then the function is called, then the function is called, resulting in an infinite loop.

ark's People

Contributors

spargle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.