GithubHelp home page GithubHelp logo

ysthakur / quipu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vkostyukov/quipu

2.0 0.0 1.0 41 KB

Fork of Quipu with some fixes or something

Home Page: http://esolangs.org/wiki/Quipu

License: Apache License 2.0

Scala 100.00%

quipu's Introduction

Quipu Programming Language

Quipu is an esoteric programming language inspired by Quipus (also known as "talking knots") - recording devices historically used by the Incas.

Code Samples

Prints "Hello World!" (without quotes)

'H
'e
'l
'l
'o
' 
'W
'o
'r
'l
'd
'!
\n
/\

Calculates the factorial of given number

"0  1  2  3  4  5  6"

\/ 2& 1& 4& 1& 1& 1&
6& [] -- [] ^^ [] /\
== ** 0& 4& -- /\
   1& [] == 1& ::
   -- -- 2& >>
   4& 4& []
   [] [] 1&
   ** ** >>
   1& 0&
   ++ []
      ++

Prints the first N members of Fibonacci sequence

"0  1  2  3  4  5  6  7  8"

\/ 1& 3& 4& 3& 7& 3& 1& 7&
   -- [] [] [] [] [] ^^ []
   0&    1& 2& 6& /\ -- 7&
   []    -- [] == 7& 1& >>
   --    7& ++ ', [] >> '.
   7&    []    /\ 1&    /\
   []    **    '  >>
   **    1&    /\
   0&    ++
   []
   ++
   8&
   ==

99-bottles-of-beer

"0 1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 16 17 18 19 20 21"

'n 'N '  '  's '  '  ', '. 'T 'G 1& 1% 1@ 1@ 9& 2& 9& 1& 9& 1& 1@
'o 'o 'm 'b    'o 'o '  \n 'a 'o ++ ;; 2& 2& [] /\ [] /\ [] [] []
      'o 'o    'f 'n       'k '     1@ [] [] /\ 3& /\ 3& /\ /\ /\
      'r 't    '  '        'e 't    1& 2& /\ 7& [] 7& [] 7& 2& 7&
      'e 't    'b 't       '  'o    [] -- 3& [] /\ [] /\ [] [] []
         'l    'e 'h       'o '     -- 1@ [] /\ 4& /\ 5& /\ /\ /\
         'e    'e 'e       'n 't       6& /\ 1@ [] 1& [] 0& 3& 9@
               'r '        'e 'h       == 4& 2& /\ /\ /\ [] [] 9&
                  'w       '  'e          [] [] 5& 3& 6& /\ /\ /\
                  'a       'd '           /\ 1& [] [] [] 2& 4& 3&
                  'l       'o 's          5& -- /\ /\ /\ [] [] []
                  'l       'w 't          [] /\ 6& 5& 7& /\ /\ /\
                           'n 'o          /\ 3& [] [] [] 3& 5& 4&
                           '  'r          6& [] /\ /\ /\ [] [] []
                           'a 'e          [] /\ 7& 6& 1& /\ /\ /\
                           'n '           /\ 4& [] [] /\ 4& 6& 5&
                           'd 'a          7& [] /\ /\ 3& [] [] []
                           '  'n          [] /\ 2& 8& [] /\ /\ /\
                           'p 'd          /\ 5& /\ [] /\ 5& 7& 6&
                           'a '           1@ [] 3& /\ 5& [] [] []
                           's 'b          2& /\ [] \n [] /\ /\ /\
                           's 'u          [] 6& /\ /\ /\ 6& 0& 8&
                           '  'y          /\ [] 4&    8& [] [] []
                           'i '           3& /\ []    [] /\ /\ /\
                           't 's          [] 8& /\    /\ 8& 2&
                           '  'o          /\ [] 5&       [] []
                           'a 'm          4& /\ []       /\ /\
                           'r 'e          [] \n /\       \n 3&
                           'r '           /\ /\ 8&       /\ []
                           'o 'm          5& 1@ []          /\
                           'u 'o          [] 1& /\          4&
                           'n 'r          /\ ??             []
                           'd 'e          8&                /\
                                          []                5&
                                          /\                []
                                                            /\
                                                            8&
                                                            []
                                                            /\

How to compile and run

With Scala environment

mvn package
scala -jar target/quipu-0.1.0.jar program.qp

Without Scala environment (JDK required)

mvn assembly:single
java -jar target/quipu-0.1.0-jar-with-dependencies.jar program.qp

by Vladimir Kostyukov, 2013

quipu's People

Contributors

vkostyukov avatar cgccuser avatar dloscutoff avatar

Stargazers

 avatar  avatar

Forkers

dloscutoff

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.