pugneum-linker
v0.3.0
Published
Link together multiple pugneum abstract syntax trees
Downloads
4
Readme
pugneum-linker
Link multiple pugneum ASTs together using include/extends
Installation
npm install pugneum-linker
Usage
var link = require('pugneum-linker');
link(ast)
Flatten the pugneum AST of inclusion and inheritance.
This function merely links the AST together.
It doesn't read the file system to resolve
and parse included and extended files.
Thus, the main AST must already have the ASTs
of the included and extended files embedded
in the FileReference
nodes.
pugneum-loader
is designed to do that.
License
MIT