diia-parser
v0.9.7
Published
Diia language parser.
Downloads
25
Maintainers
Readme
diia-parser
Diia language parser written in antlr4 and JavaScript.
Installation
npm i diia-parser
Usage
import { parse } from 'diia-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/kohutd/diia-parser
cd diia-parser
npm install
Generating antlr4 files:
npm run antlr4
Running tests:
npm test