entGriff / the-super-tiny-compiler

Python version of da suppa tiny compiler of @thejameskyle

Home Page:https://github.com/thejameskyle/the-super-tiny-compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THE SUPER TINY COMPILER

Welcome to The Super Tiny Compiler!

This is a Python version of The Super Tiny Compiler originally developed in JavaScript by @thejameskyle

Although I must admit I did tweaks to it:

  • Right and left Parenthesis on the tokenizer are treated as 2 separated token types, to simplify a condition on the parser.
  • Didn't liked how the visitor map of functions in the transformer function looked like with lambda's, so I wroted it as functions so It'll look more tidy.
  • Usage of Python placeholders on the codeGeneration function

Distributed under the same license as author, because I know nothing about licenses.

cc-by-4.0

About

Python version of da suppa tiny compiler of @thejameskyle

https://github.com/thejameskyle/the-super-tiny-compiler

License:Creative Commons Attribution 4.0 International


Languages

Language:Python 100.0%