Archived
lastest
This commit is contained in:
1 parent
620fc5bda1
commit
bd3ef9f279
779 files changed
+202868
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
load("lib.js")
|
||||
load("ometa-base.js")
|
||||
load("parser.js")
|
||||
load("bs-js-compiler.js")
|
||||
load("bs-ometa-compiler.js")
|
||||
load("bs-ometa-optimizer.js")
|
||||
load("bs-ometa-js-compiler.js")
|
||||
|
||||
alert = print
|
||||
|
||||
translateCode = function(s) {
|
||||
var translationError = function(m, i) { alert("Translation error - please tell Alex about this!"); throw fail },
|
||||
tree = BSOMetaJSParser.matchAll(s, "topLevel", undefined, function(m, i) {
|
||||
throw objectThatDelegatesTo(fail, {errorPos: i}) })
|
||||
return BSOMetaJSTranslator.match(tree, "trans", undefined, translationError)
|
||||
}
|
||||
|
||||
ometa = function(s) { return eval(translateCode(s)) }
|
||||
|
||||
Reference in new issue
Block a user