roole-parser

Parser for the Roole language

roole-parser

Take a string of Roole code, and output the ast.

var parser = require('roole-parser');
var ast = parser.parse('body { margin: 0 }');
console.log(ast);
parser.parse(str, options)
  • str - string of Roole code
  • options - hash object supports the following options:
    • filename - file path of the Roole code, used is debugging