0.0.6 • Published 10 months ago

@lbdudc/uvl-js-parser v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

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.

indexcontent
InstallationHow to install the parser
UsageHow to use the parser
DevelopmentHow to develop the parser
Publishing in npmHow 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

0.0.6

10 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago