ASPCC

An extensible ASP/VbScript interpreter
Related
[Home]

Active:
OCamlConf
OCaml-FreeTDS

Idle:
PMathGen
Wakkabox

Past:
ASPCC
Open Sound World
Scheme Note
Gravwars
sdlnet example
ograph
About ASPCC

ASPCC is no longer being developed!

The content below is for the benefit of anyone who, for whatever godawful reason, would like to hack on a VbScript interpreter written in O'Caml. I never distributed it, since it was seriously hackish for internal use, but I've tarr'd up the final code base as a 0.1 release.

ASPCC is a vbscript interpreter written on Ocaml, extensible via Ocaml, with implementations for most vbscript functions and ASP objects. It also has a built in server-side include engine to mimic IIS's non-standard/broken implementation.

ASP is primarily dominates by proprietary products. If you have a large vbscript codebase, this might help. There are other projects that might also serve your purposes, but surely not in the same way:

  • Arrowhead ASP - written in Java, which is as of yet non-free, plus a questionable technology even if it were.
  • asp2php - A C hack for converting ASP to PHP; ASPCC actually robustly parses the VbScript and can also output PHP. Try both maybe one will work better for you... outputting PHP is no longer a priority because of the author's opinion of PHP as a language.
  • Gnome basic has some kind of ASP/VbScript support but I'm not sure what, and either way I'm into modern languages, which doesn't include C

Features:

  • All VbScript syntax supported
  • Most VbScript functions implemented
  • Many ASP intrinsic objects implemented
  • Extensible via Ocaml - speed up your bottlenecks!

Planned Features:

  • MSXML implementation (partially completed)
  • Class inheritance
  • Class "shared" functions - a primitive namespacing technique
  • ADO implementation

Requirements:

  • ASPCC is written in ocaml, available from http://www.ocaml.org
  • ASPCC's build process requires findlib, available at http://www.ocaml-programming.de/packages
  • MS.XMLDOM compatability will require PXP or gmetadome PXP: http://www.ocaml-programming.de/packages
  • Date functions require ocamlnet for parsing: http://www.ocaml-programming.de/packages

News
5/9/2004
aspcc-0.1 Released
Well, I finally got it to really plug into apache nicely, and parse/load company's huge mess of VbScript code, and hit some really nasty errors that aren't easy to debug.

So... it basically works perfectly for simple scripts! There is some problem with object orientation that I haven't isolated, and the purpose of this news item is to indicate that I'm pretty much discontinuing work until I am for some reason inspired. but really, VbScript is awful, the only reason to use it is for ASP compatability, my company is one of the few who haven't moved to .Net and so this project is already almost obsolete.

It has been fun and I'm glad I did it; I learned a lot about language no-nos from this.

3/11/2004
Initial creation of ASPCC webpage.

DARCS access is available via http://kefka.frap.net:8080/~kenn/repos/

Downloads
Final release!
aspcc-0.1.tar.bz2