Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.1 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.1 KB

sky

Super simple programming language and tiny compiler developed for educational purpose in Scala

Motivation

Coding4fun, just trying to simplify how compilers work for who has interest

How it works

Compilers(mostly) have 3 primary stages;

Parsing

  • Lexical Analysis
  • Syntactic Analysis

Transformation
Make some changes on AST

Code Generation
Create code from AST

              /----------\      /-----------------\       /-----------------\
 /------\     |          |      |                 |       |                 |
 | Raw  |____ | Parsing  |_____ | Transformation  |______ | Code Generation | 
 | Code |     |          |      |                 |       |                 |
 \------/     \----------/      \-----------------/       \-----------------/

Sample

//TODO:

Links

Step-By-Step Guide

TODO: