Code Monkey home page Code Monkey logo

racket-tulip's Introduction

🌷 Tulip as a Racket #lang

This is a Racket implementation of the Tulip programming language. It implements Tulip as a Racket #lang. This is an extreme work-in-progress, so the language support is currently somewhat poor (and Tulip itself is still a work in progress, itself).

To install, just run raco pkg install tulip. You should then be able to write Tulip programs simply by writing #lang tulip at the top of your modules.

#lang tulip

@import tulip/math

test = {
  is-even = [ 0 => .t; x => decr x > is-odd  ]
  is-odd  = [ 0 => .f; x => decr x > is-even ]
  [ .even x => is-even x; .odd x => is-odd x ]
}

test (.even 3)
test (.odd  3)

racket-tulip's People

Contributors

lexi-lambda avatar

Stargazers

Rémi avatar Ryan Faulhaber avatar Gaga avatar Grzegorz Caban avatar  avatar Jörgen Brandt avatar Winston (Winny) Weinert avatar Stephen De Gabrielle avatar Michel Lussier avatar ylluminate avatar George Plymale II avatar Jack Firth avatar Alex Knauth avatar Val Packett avatar Marcelo Camargo avatar

Watchers

 avatar  avatar

Forkers

chrisgd

racket-tulip's Issues

Unexpected autovar

autovar not parsed correctly perhaps?

[ add $ 5 ] 3

expected:

8

got:

. . interactions from an unsaved editor:40:8: parse error
  unexpected: AUTOVAR
  expected: OP-CLAUSE

tuple syntax not supported

(.x, .y, .z) # or simply just: .x, .y, .z

expected:

.tuple x (.tuple .y .z)

got:

lexer: No match found in input starting with: ,

`-` syntax is not supported

as explained here in Chaining and Auto-Curry section:

5 > sub - 3

expected:

2

got:

 lexer: No match found in input starting with: -

definition that begins with > sugar

foo = > add 1 > add 1

expected to be equivalent to:

foo x = x > add 1 > add 1

but got:

 unsaved-editor:7:6: parse error
  unexpected: OP-CHAIN
  expected: expression

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.