An example of a simple Domain-Specific Language for editing tangled trees.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Tangled tree DSL</title>
<link rel="stylesheet" href="index.css">
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="/webvis/tmp/peg-0.9.0.min.js"></script>
<script src="https://underscorejs.org/underscore-min.js"></script>
<script src="https://backbonejs.org/backbone-min.js"></script>
<script src="backbone.d3view.js"></script>
<script src="https://marvl.infotech.monash.edu/webcola/cola.v3.min.js"></script>
<script src="tsort.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.0/lodash.min.js"></script>
<link type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.6.0/codemirror.min.css" rel="stylesheet"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.6.0/codemirror.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.6.0/keymap/sublime.js"></script>
<!-- your views go here -->
<script src="AppView.js"></script>
<script src="Editor.js"></script>
<link rel="stylesheet" href="Editor.css">
<script src="NodeLink.js"></script>
<link rel="stylesheet" href="NodeLink.css">
<!-- your models go here -->
<script src="Graph.js"></script>
</head>
<body>
<script src="index.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://underscorejs.org/underscore-min.js to a secure url
Modified http://backbonejs.org/backbone-min.js to a secure url
Modified http://marvl.infotech.monash.edu/webcola/cola.v3.min.js to a secure url
Modified http://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.0/lodash.min.js to a secure url
https://d3js.org/d3.v3.min.js
https://underscorejs.org/underscore-min.js
https://backbonejs.org/backbone-min.js
https://marvl.infotech.monash.edu/webcola/cola.v3.min.js
https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.0/lodash.min.js
https://cdnjs.cloudflare.com/ajax/libs/codemirror/4.6.0/codemirror.min.js
https://cdnjs.cloudflare.com/ajax/libs/codemirror/4.6.0/keymap/sublime.js