DeHydra: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(p)
m (reformat code)
Line 14: Line 14:


In a new file(test.js) define functions process & path_end:
In a new file(test.js) define functions process & path_end:
function process(vars, state) {
function process(vars, state) {
if (!state)
  if (!state)
  state = 0;
    state = 0;
print(state + ": " + vars);
  print(state + ": " + vars);
}
}
 
function patch_end(state) {
function patch_end(state) {
print(state)
  print(state)
}
}
 


== More Details ==
== More Details ==


[http://people.mozilla.org/~tglek/dehydra/paper.pdf Dehydra Paper]
[http://people.mozilla.org/~tglek/dehydra/paper.pdf Dehydra Paper]

Revision as of 16:42, 26 September 2007

DeHydra is a tool inspired by UNO.

DeHydra integrates a low level C++ core and a JavaScript engine for user scripts. More info.

C++ core deals with parsing, name resolution, scoping, control flow graphs.

A user can utilize the JS engine to:

  • Write scripts using that core to accomplish custom analyses without recompilation.
  • Work on these scripts to make them progressively as sound and as complete as possible.

Quickstart

Step 1.

In a new file(test.js) define functions process & path_end:

function process(vars, state) {
 if (!state)
   state = 0;
 print(state + ": " + vars);
}

function patch_end(state) {
 print(state)
}

More Details

Dehydra Paper