Giter VIP home page Giter VIP logo

scandi's Introduction

The scandi Programming Language

scandi is a small programming language project I have undertaken in response to a friend's challenge.

The aim of the language is to have no 'keywords' -> though I will note the use of symbols instead could be construed as such. scandi uses every symbol available on a standard keyboard, and a couple of digraphs where appropriate.

scandi makes use of spacing to indicate scope changes.

scandi uses a table-backed memory management system.

scandi provides a small standard library to work with (WIP).

This project is using LLVM to build a compiler.

Example Program (Fibonacci Sequence):

` fibonacci.scandi

{stream.writeline writeline}
{system.stdout out}

` Calculates the n-th fibonacci value, given two starting values.
$a $b $n @fibonacci

   n 1 <
      "Error: this example is unable to calculate a negative fibonacci index." out writeline
      fibonacci 0 =

   n 1 ?
      fibonacci a =

   $pos 2 =
   $sum a b + =

   \loop
      pos n ?
         fibonacci sum =
      sum a b + =
      a b =
      b sum =
      pos 1 +
      loop


` Calculate the 12th fibonacci number
$result 0 1 12 fibonacci =
"The 12th fibonnacci number is " result + out writeline

scandi's People

Contributors

chaosinflesh 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.