Skip to content
Röda: A stream-oriented scripting language
Branch: master
Clone or download
Latest commit 136603b Jun 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples mahdollisuus vaihtaa mime-tyyppiä + paremmat virheviestit + korjauksia Feb 5, 2017
nept @ 3fecb52 uusi versio neptistä Jan 8, 2017
src/org/kaivos/röda
test/org/kaivos/röda/test lisätty //=, %= ja ^= Mar 28, 2017
.gitmodules
GUIDE.md päivitetty guidea Feb 15, 2017
LICENSE lisätty lisenssi. added license Mar 9, 2017
OHJEET.md päivitetty readmeetä ja ohjeita Jul 18, 2017
README.md lisätty linkkejä Röda-ohjelmiin Jul 18, 2017
build.gradle new version of jline Jun 19, 2018
settings.gradle lisätty gradle-käännöskripti Jan 2, 2016

README.md

Röda

English

Röda is a homemade scripting language inspired by Bourne shell, Ruby and others. While not being a real shell language, Röda still makes an extensive use of concurrency and streams (pipes). For more documentation, see GUIDE.md. The standard library reference and other information is also found at the authors web page.

Building

Using Gradle:

$ git clone --recursive https://github.com/fergusq/roda.git
$ cd roda
roda $ gradle fatJar

Example

Real life examples:

Prime generator:

#!/usr/bin/röda

main {
	primes := [2]
	seq 3, 10000 | { primes += i if [ i % p != 0 ] for p in primes } for i
	print p for p in primes
}

HTTP server:

#!/usr/bin/röda

{
	http := require("http_server")
}

main {
	server := new http.HttpServer(8080)
	server.controllers["/"] = http.controller({ |request|
		request.send "200 OK", "<html><head><title>Hello world!</title></head><body>Hello world!</body></html>"
	})
	while true; do
		server.update
	done
}

Suomeksi

Röda on uusi ohjelmointikieleni, joka on saanut vaikutteensa lähinnä Bourne shellistä. Dokumentaatio on tällä hetkellä saatavilla suomeksi tiedostossa OHJEET.md.

LICENSE

Röda Interpreter
Copyright (C) 2017 Iikka Hauhio

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
You can’t perform that action at this time.