Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parser for the Roole language
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.npmignore
LICENSE
Makefile
README.md
package.json

README.md

roole-parser

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

Example

var parser = require('roole-parser');
var ast = parser.parse('body { margin: 0 }');
console.log(ast);

API

parser.parse(str, [options])
  • str - A string of Roole code.
  • options - Object literal supports these options:
    • `filename - An string of absolute path of the file that contains this Roole code. If specified, each AST node will contain it in the location info.
    • loc (default: true) - A boolean denoting whether AST nodes should contain location info. If an object is passed, that object will be used directly as the location.
Something went wrong with that request. Please try again.