roole-builtin

Roole language builtins

npm install roole-builtin
25 downloads in the last day
107 downloads in the last week
403 downloads in the last month

roole-builtin

Roole language builtins. Used by roole-evaluator.

Installation

npm install roole-builtin

Example

var parser = require('roole-parser');
var evaluator = require('roole-evaluator');
var compiler = require('roole-compiler');

var ast = parser.parse('a { content: $len(0 1) }');
ast = evaluator.evaluate(ast, { scope: [builtin, {}] });
var css = compiler.compile(ast);

console.log(css) // a { content: 2 }
npm loves you