Skip to content
A VBScript implementation. Just because.
Ruby Visual Basic Shell ASP
Find file
Latest commit 86b562f @matthewd Note in the README that this does actually work
(For at least some, relatively narrow, definitions of work)
Failed to load latest commit information.
bin Brief structural debugging function
lib
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
Rakefile Add (bundler) gem infrastructure, and a spec or two.
rasp.gemspec Add (bundler) gem infrastructure, and a spec or two.
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.