Skip to content

The programming language that is creating in my live streaming.

Notifications You must be signed in to change notification settings

yuniruyuni/lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The yuni language

The programming language that is creating in my live streaming( プログラミング言語を作ろう ).

How to compile the compiler?

You can build the compiler in container by using docker and docker-compose. After install docker and docker-compose, run following command on repository root:

docker compose run test

It will run compiler tests along with test.sh's definition so you can see the result of tests. If it is all SUCEEDED, you can dive into the container by using following command:

docker compose run sh

It takes TTY and so you can operate it with arbitrary unix commands. The final binary is ./bin/lang. It takes STDIN and it will generate LLVM-IR to STDOUT so if you want to run a file then you can use cat (anyfile) | ./bin/lang | lli in the container.

Structure of compiler environment

This slide page describes such info: https://docs.google.com/presentation/d/1GUWQv3kVH8Kv1apoQ1Gu01DG1EWngMzwSfiiCE46B3A/edit#slide=id.g112d216b7f3_0_44

Examples

You can see examples on ./test/ directory.

About

The programming language that is creating in my live streaming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages