summaryrefslogtreecommitdiff
path: root/tools/spec2js.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:10:11 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:10:44 -0800
commitbe19ec302584732eca18de162a7eaf5d8649379e (patch)
tree39a3d64a4f26ea345f33001d8b78610aa7cbde53 /tools/spec2js.js
parente7232e399a66ea97ce2ed9303c71ec03245cc172 (diff)
Removed spec-specific files (DTD, spec generation tools).
Diffstat (limited to 'tools/spec2js.js')
-rwxr-xr-xtools/spec2js.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/spec2js.js b/tools/spec2js.js
deleted file mode 100755
index 6bf366f..0000000
--- a/tools/spec2js.js
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env node
-
-var fs = require('fs');
-var util = require('util');
-
-fs.readFile('spec.txt', 'utf8', function(err, data) {
- if (err) {
- return console.log(err);
- }
- var examples = [];
- data.replace(/^\.\n([\s\S]*?)^\.\n([\s\S]*?)^\.$/gm,
- function(_,x,y){
- examples.push({markdown: x, html: y});
- });
- console.log(util.inspect(examples, { depth: null }));
- console.warn(examples.length + ' examples');
-});