mavka-parser
v0.60.1
Published
Mavka language parser.
Downloads
61
Maintainers
Readme
mavka-parser
Mavka language parser written in antlr4 and JavaScript.
Installation
npm i mavka-parser
Usage
import { parse } from 'mavka-parser';
const code = `
дія знайти_суму(а, б)
а + б
кінець
сума = знайти_суму(2, 2)
друк(сума)
`;
const ast = parse(code);
console.log(ast);
Development
Requirements:
- NodeJS 16+ with NPM
- Java 8+
Installation:
git clone https://github.com/mavka-ukr/mavka-parser
cd mavka-parser
npm install
Generating antlr4 files:
npm run antlr4
Running tests:
npm test