Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A VBScript implementation. Just because.
Ruby Visual Basic Shell ASP
branch: master

Note in the README that this does actually work

(For at least some, relatively narrow, definitions of work)
latest commit 86b562fcf9
@matthewd authored
Failed to load latest commit information.
bin Brief structural debugging function
lib From the department of "why tests are a good idea".
old Moved things around into a proper dir structure.
spec/parser Add (bundler) gem infrastructure, and a spec or two.
t Note in the README that this does actually work
.gitignore Add (bundler) gem infrastructure, and a spec or two.
Gemfile Add (bundler) gem infrastructure, and a spec or two.
LICENSE AST & compiler: very much WIP.
README.markdown Note in the README that this does actually work
Rakefile Add (bundler) gem infrastructure, and a spec or two.
rasp.gemspec
scratch.rb More work in progress.

README.markdown

rasp

A VBScript runtime, running on the Rubinius VM.

Untested, undocumented, and ill-advised.

Usage

Given t/easy.vbs:

Option Explicit

Const MIN = 1
Const MAX = 10

Function fib(n)
   If n < 3 Then
      fib = 1
   Else
      fib = fib(n - 2) + fib(n - 1)
   End If
End Function

Dim i
For i = MIN To MAX
   WScript.Echo "fib(" & i & ") = " & fib(i)
Next

Run:

bin/rasp t/easy.vbs --run

And you'll see:

fib(1) = 1
fib(2) = 1
fib(3) = 2
fib(4) = 3
fib(5) = 5
fib(6) = 8
fib(7) = 13
fib(8) = 21
fib(9) = 34
fib(10) = 55
Something went wrong with that request. Please try again.