adbo / code-analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code analyzer - this application can take a grammar as input and perform lexical analysis of a code which using the language described by this grammar. Application use an open source library Jison (https://zaa.ch/jison/) to build a JS capable of parsing a code.

To run this code You need first to install library Node.JS (https://nodejs.dev/)

Installation:

npm init

Using:

node index.js grammar.jison program.lang

where grammar.jison is a grammar, and program.lang is a code in the language decibed by the grammar.

About


Languages

Language:Yacc 95.8%Language:JavaScript 4.2%