nikhilnxvverma1 / graphful

Data defining language for making graphs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graphful

A good reason to learn Compiler design, is to create a language itself. Not necessarily a programming language but a simple data "holding" language. Graphful is a domain specific language(DSL) for defining graph data. Unlike JSON and XML, Graphful establishes connections (as edges) between data nodes.

Description

To create any language, there are essentially two levels of development: The frontend and the backend. Each contains a series of stages. The frontend invloves a language's syntax, semantics and intermediate code. The backend essentially comprises of the final value that one aims achieve. In this case, the aim is to capture graph based data in a textual format.

Current Status

  1. Lexical Analysis - done
  2. Syntax Parsing using LR(1) parser - done
  3. Context Free Grammer of the language - done
  4. Semantic parsing of parse tree - done
  5. Graph data structure - done

Instructions

Make sure you have node >= 6.9.0

  1. npm install
  2. npm test

About

Data defining language for making graphs


Languages

Language:TypeScript 94.8%Language:JavaScript 4.2%Language:Grammatical Framework 0.6%Language:HTML 0.3%Language:CSS 0.1%