git clone https://github.com/steven-jeanneret/compilo_mdplusplus
cd compilo_mdplusplus
- Python 3.6
- pydot
- ply
- Graphviz
To run lex, run the following command and specify a Markdown++ file.
python lex.py filename.txt
In the same folder a new text file was created : filename.txt. This file contain all the lexems.
Graphviz is needed and it may be necessary to define the path, if so edit parserproj.py and change the content of
PATH_TO_GRAPHVIZplaces after import.
To run parser, run ths following command and specify a Markdown++ file.
python parserproj.py filename.txt
In the same folder a new pdf file was created : filename-ast.pdf. This file contains the AST tree.
python compiler.py filename.txt
In the same folder a new html file has been created : filename.html. This file contains the compiled html of input code.