Giter Club home page Giter Club logo

backwards's Introduction

backwards

A backwards programming language. If you can understand this, your a god.

Purpose

This is not to be intended as a real programming language, but I'm not stopping you for using it. Spread the love. This is for me to learn how a programming language is created. I'll be writing a lexer, parser, type checking and interpreter. This maybe be integrated into my operating system, DeanOS.

Features/How to

  • The function body will be exaluated before the arguments, like in Haskell
  • Statements end in a semi-colon
  • Assignment is left to right, so asigning 5 to a variable, you would do:
5 := five;
  • Function applications are arguments then function name:
(5)fib;
  • Code is executed upwards, so the following will do an assignment then print:
(five)print;
5 := five;

So u will read the program from bottome to top

  • Indendting is reverces where instead of indenting a line within a if or for... statment, u will have to indent the whole program:
 {
return n;
 } if n < 2
  • To make it even more backwards, the indenting doubles with each indent. It starts off at 1 then 2 then 3 and so on, so here is an example:
        { // 8 spaces
    { // 4 spaces
  { // 2 spaces
 { // 1 spaces
("two")print;
 } if i > 1
  } if i > 3
    } (0 := int: i, i < 5, i++) for
        } ()main

backwards's People

Contributors

drdeano avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

icodein

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.