0.0.3 • Published 1 year 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-parserUsage
ES6
import { FeatureModel } from 'uvl-parser';
const featureModel = new FeatureModel('file.uvl');
const tree = featureModel.getFeatureModel();Development
Install dependencies
npm installBuild grammar
npm run build-grammarRun tests
npm testPublishing 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