SalemC / creagle-compiler

A basic compiler for a custom language, written in TypeScript.
MIT License
1 stars 0 forks source link
compiler custom-language typescript

Custom Language (Creagle) Compiler in TypeScript

This repository contains a simple compiler built in TypeScript for a completely custom language. Please note that this compiler is not intended for practical use but serves as a reference implementation for understanding the basic concepts of compiler design and construction. It was developed as a personal learning project to explore the inner workings of compilers.

Table of Contents

Introduction

Understanding how compilers work is a complex yet essential aspect of programming language development. This project aims to provide insights into the compilation process by implementing a compiler for a custom language using TypeScript.

Features

Structure

The project structure is organised as follows:

Usage

1. Clone the Repository

Clone the repository to your local machine using the following command:

git clone https://github.com/SalemC/creagle-compiler

2. Navigate to the Project Directory

cd creagle-compiler

3. Install Dependencies

npm install

4. Build the Project

npm run build

5. Run the Project

npm run run ./relative/path/to/your/creagle/file

Contributing

Contributions to improve the code, add features, or fix bugs are welcome. If you find any issues or have suggestions, please open an issue.

License

This project is licensed under the MIT License. Feel free to use the code for educational purposes or as a reference.