Skip to content

andreffrosa/mylang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mylang

This repository contains the implementation of my own programming language compiler. The compiler is implemented in C and the compiler's target is also C code.

Compiling the mylang Compiler

To compile the compiler you need to have a C compiler and CMake installed. The Makefile contains several commands to facilitate buiding and testing the project. To compile, simply run make clean build.

To run the tests, you can run make test.

Usage

The compiler (actually it is still just an intreperter) supports two modes: interactive (from stdin) or normal (from files).

To run in interactive mode simply launch the built executable without any arguments: make run.

To run in normal mode, pass a sequence of file paths as arguments: make run ARGS="./examples/file.txt ./examples/file2.txt".

About

My own programming language compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published