Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 629 Bytes

README.md

File metadata and controls

7 lines (5 loc) · 629 Bytes

nonek

Creation of my own simple programming language with grammar that describes it, editor as a plugin for Sublime Text and compiler for the language.

Grammar is described in grammar.txt, theme and file to enable editor in Sublime Text are in folder editor.

In order to compile the program, techniques that are used are disassembling the input string to tokens, parsing, construction of abstract syntax tree, visiting the tree... Generated tree can be seen by running getastdot.py and pasting the output to Webgraphviz (http://www.webgraphviz.com/). Program is compiled to Python language in file getastpython.py.