mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Hacked the sandbox to expose a parse() method
The sandbox will be going shortly, it's convenient at the moment though
This commit is contained in:
parent
06f9887d59
commit
3515016a7e
@ -15,6 +15,10 @@ var Sandbox = function(parserText) {
|
||||
this.parser = pegjs.buildParser(parserText);
|
||||
};
|
||||
|
||||
Sandbox.prototype.parse = function(code) {
|
||||
return this.parser.parse(code);
|
||||
}
|
||||
|
||||
Sandbox.prototype.execute = function(code,globals) {
|
||||
var globalNames = [],
|
||||
globalValues = [],
|
||||
|
Loading…
Reference in New Issue
Block a user