Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.21 KB

README.md

File metadata and controls

48 lines (36 loc) · 2.21 KB

LOGO

License GitHub forks GitHub issues Last Commit GitHub stars

A super tiny compiler project that demonstrates the basics of building a simple compiler from scratch.

Table of Contents

About

The Super Tiny Compiler is a minimalistic compiler project created to help you understand the fundamental concepts of building a compiler. It provides a simple example of how a compiler can tokenize and parse a basic programming language.

Features

  • Lexer: Tokenizes the source code into individual tokens.
  • Parser: Parses the tokens into an abstract syntax tree (AST).
  • Transformer: Transforms the AST into a new, target programming language.
  • Code Generator: Generates code in the target language.

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Your development environment should support your chosen programming language.

Usage

  1. Clone the repository:
    git clone https://github.com/namansharma18899/super-tiny-compiler.git
  2. go run .