kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Hacked the sandbox to expose a parse() method
The sandbox will be going shortly, it's convenient at the moment thoughprint-window-tiddler
rodzic
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 = [],
|
||||
|
|
Ładowanie…
Reference in New Issue