0.0.3 • Published 9 months ago
uvl-parser v0.0.3
UVL Parser Javascript
This is a parser for the UVL (Unified Variability Language) written in Javascript. The parser is based on the ANTLR4 grammar for UVL.
index | content |
---|---|
Installation | How to install the parser |
Usage | How to use the parser |
Development | How to develop the parser |
Publishing in npm | How to publish the parser in npm |
Installation
npm install uvl-parser
Usage
ES6
import { FeatureModel } from 'uvl-parser';
const featureModel = new FeatureModel('file.uvl');
const tree = featureModel.getFeatureModel();
Development
Install dependencies
npm install
Build grammar
npm run build-grammar
Run tests
npm test
Publishing in npm
The run build will create the folder with the compiled code. To publish in npm, run the following commands:
npm run build
npm publish --access public
Authors
- Victor Lamas: victor.lamas@udc.es
- Maria Isabel Limaylla: maria.limaylla@udc.es