Permalink
302c9c1 Dec 1, 2016
25 lines (21 sloc) 876 Bytes
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
background-color: hsl(30, 20%, 95%)
}
</style>
<!--References when using npm and chevrotain is installed node_modules/chevrotain.-->
<link rel='stylesheet' href='node_modules/chevrotain/diagrams/diagrams.css'>
<script src='node_modules/chevrotain/diagrams/vendor/railroad-diagrams.js'></script>
<script src='node_modules/chevrotain/diagrams/src/diagrams_builder.js'></script>
<script src='node_modules/chevrotain/diagrams/src/diagrams_behavior.js'></script>
<script src='node_modules/chevrotain/diagrams/src/main.js'></script>
<body>
<div id="diagrams" align="center"></div>
<script src='build/syntax_diagrams/serialized_syntax.js'></script>
<script>
var diagramsDiv = document.getElementById("diagrams");
main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv)
</script>
</body>