b0VIM 7.4æ°ÝWì´ý£jbeard4Jacobs-MacBook-Pro.local~jbeard4/workspace/scion/scion/README.mdutf-8 3210#"! UtpSad=¥Sõô‰ˆîíÞÝÒѽ¼±°’‘‰ˆ76)(à ß Ê É   Ÿ ˆ ‡ e 3 2    ë Æ Å ¿ ¼ ¸ · ± ° Ÿ ž a " Ï ƒ ‚ V U  • ” c b a    ¼ ‰ V R Q 3 2 ðïîßÞyx¦¥¤[![Sauce Test Status](https://saucelabs.com/browser-matrix/jbe[![Sauce Test Status](https://saucelabs.com/browser-matrix/jbeard43.svg)](https://saucelabs.com/u/jbeard43)[![Sauce Test Status](https://saucelabs.com/buildstatus/jbeard43)](https://saucelabs.com/u/jbeard43)[![Build status](https://travis-ci.org/jbeard4/SCION.svg)](https://travis-ci.org/jbeard4/SCION-CORE)# Build StatusSee [SCION-CORE API](https://github.com/jbeard4/SCION-CORE#api). ## Statechart Interpreter API``` sc2 = new scxml.scion.Statechart(fnModel); var sc1 = new scxml.scion.Statechart(fnModel), //same model can be used to create multiple interpreter instances```javascriptThe Statechart constructor creates an interpreter instance from a model object.### new scxml.scion.Statechart(fnModel, options)Prepare the model by downloading source scripts and constructing a host execution context for the SCXML datamodel.### model.prepare(function(err, fnModel) {}, executionContext, hostContext)Compile SCXML to JavaScript object "model".### scxml.documentToModel(scxmlDocument,function(err, model){} [, context])### scxml.documentStringToModel(scxmlDocString,function(err, model){} [, context])### scxml.pathToModel(path,function(err, model){} [, context])### scxml.urlToModel(url,function(err, model){} [, context])## Instantiation# API```}) }); sc.gen({name:"init",data:rect}); //send the init event sc.start(); //start the interpreter var sc = new scxml.scion.Statechart(fnModel); //instantiate the interpreter if(err) throw err; model.prepare(function(err, fnModel) { if(err) throw err;scxml.urlToModel("drag-and-drop.xml",function(err,model){```javascript# Quickstart`