nfischer / rainbows-lang Goto Github PK
View Code? Open in Web Editor NEW:rainbow: A prototype of the rainbows programming language
Home Page: https://nfischer.github.io/rainbows-lang/
License: MIT License
:rainbow: A prototype of the rainbows programming language
Home Page: https://nfischer.github.io/rainbows-lang/
License: MIT License
If you click on the fibonacci example (lets say, on the last line), the cursor won't be adjusted quite right. It'll look as if it's partially between lines 14 and 15 (mostly on 15, where it should be). Once you start typing, everything works looks correct once again.
This has to do with adding in the underlines, which increase the height of the lines. This is something that ideally should get fixed, since it's annoying for examples with lots of underlines.
Or, we can investigate different styles, like tinting the background with a lighter shade of a lighter color, instead of underlining.
It'd be cool if the travis badge had a rainbow background. Feel free to submit a PR!
The type inference is an awesome language feature, but it can be even better than it is right now. I envision type inference as the default way of code getting colored, and allowing users to customize from there. That means:
I'd also really like to see type inference involving object properties, i.e.
var foo = {bar: true, baz: 7};
var shouldBeBool = foo.bar;
var shouldBeInt = foo.baz;
If you want to help out, check out src/inference.js for the current type inference code.
Codemirror lets you use linewidgets to display error messages beneath a specific line. I'd probably be most interested in something along the lines seen for CDG's prolog visualizer.
It'd be great if there was a good way to point out what's useful about each example. This could be done, perhaps with a div on the left-hand side, giving suggestions on what to do to play with the example.
An example might be: "Try clicking on 'fib' and move the slider to a different color."
Right now, a lot of things don't get interpreted. More of the examples should work though!
If you want to help, take a look at src/interp.js.
Type inferencer (bin/rain-infer.js
)
rain
file as stdinraint
type dictionaryInterpreter (bin/rain-interp.js
)
raint
type dictionaryA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.