Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (29 sloc) 672 Bytes
var
fs $ require :fs
chalk $ require :chalk
parser $ require :./lib/parser
var names $ []
, :demo
, :folding
, :indent
, :line
, :parentheses
, :quote
, :unfolding
, :html
, :spaces
, :comma
var test $ \ (file)
var filename $ + :cirru/ file :.cirru
var content $ fs.readFileSync (+ :ast/ file :.json) :utf8
var wanting $ content.trim
var ast $ parser.pare (fs.readFileSync filename :utf8) filename
= ast $ JSON.stringify ast null 2
if (is ast wanting)
do
console.log $ chalk.gray ":ok! fine with:" file
do
console.log $ chalk.red ":failed! with file:" file
console.log ast
return
names.forEach test
You can’t perform that action at this time.