0.0.6 • Published 10 months ago
@lbdudc/uvl-js-parser v0.0.6
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();
CommonJS
const { FeatureModel } = require('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 dist folder with the compiled code. To publish in npm, run the following commands:
npm run build
npm publish --access public dist
Authors
- Victor Lamas: victor.lamas@udc.es
- Maria Isabel Limaylla: maria.limaylla@udc.es