Skip to content

wcandillon/zorba.js

Repository files navigation

#Zorba.js - Zorba Compiled to JavaScript

This project provides tooling to compile the Zorba XQuery Processor (http://www.zorba-xquery.com/) to JavaScript using Emscripten (http://emscripten.org). This repository contains a version of libxml2 and libzorba compiled to LLVM bytecode.

##Dependencies

##How to compile it? The build.sh script compiles src/zorba.cpp to JavaScript. Simply execute the script with the LLVM and EMSCRIPTEN variables:

$ LLVM=/path/to/llvm/bin EMSCRIPTEN=/path/to/emscripten ./build.sh

build_debug.sh is identical to build.sh but produces a debuggable output.

##How to build dependencies? ###Libxml2 Tutorial on how to build libxml2 to llvm bytecode is available at http://mozakai.blogspot.fr/2012/03/howto-port-cc-library-to-javascript.html ###Zorba Checkout Zorba LLVM branch:

$ bzr branch lp:~zorba-coders/zorba/llvm

To build

$ LLVM=/path/to/llvm/bin EMSCRIPTEN=/path/to/emscripten ./build_zorba.sh

About

Zorba Compiled to JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published