diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-24 21:10:11 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-24 21:10:44 -0800 |
commit | be19ec302584732eca18de162a7eaf5d8649379e (patch) | |
tree | 39a3d64a4f26ea345f33001d8b78610aa7cbde53 /tools/spec2js.js | |
parent | e7232e399a66ea97ce2ed9303c71ec03245cc172 (diff) |
Removed spec-specific files (DTD, spec generation tools).
Diffstat (limited to 'tools/spec2js.js')
-rwxr-xr-x | tools/spec2js.js | 17 |
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'); -}); |