Skip to content

chrisdickinson/escontrol

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

escontrol

Generate ECMAScript 5 (and hopefully 6, soon) control flow graphs. Really rough working state right now.

var escontrol = require('escontrol')
var esprima = require('esprima')

var ast = esprima.parse('<some code>')
var cfg = escontrol(ast)

while(cfg.advance()) ;

// get all edges!
var edges = cfg.edges()

API

Hoo-boy. This is in a rough state at the moment.

Check out the examples directory for some usage.

License

MIT