gren-lang/compiler
소개
Gren 프로그래밍 언어용 컴파일러
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +4
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGren
Compiler for Gren, a pure functional programming language that is easy to learn, but powerful in use.
There are easier ways to install the compiler than compiling the source, you might want to read the setup instructions.
Build from source
This project uses devbox for managing dependencies required to build the project. If you don't want to use devbox,
you can find a list of the requried dependencies and the commands for building the compiler in devbox.json.
Since Gren 0.4 the compiler is implemented in two parts. The Gren-part of the compiler lives in src, and once built it acts
as a frontend to the Haskell-part of the compiler.
The end goal is for the entire compiler to be written in Gren.
To build the compiler:
- Use
devbox run prepare-depsto setup the required dependencies. The first time you run this it might take a while. - Build the compiler with
devbox run build. This will create aappfile and agrenexecutable in the project root directory.
You can now execute the Gren-part of the compiler with node ./app or just ./app. This either requires node to be installed,
or that you've entered the development shell by using devbox shell. The Gren-part of the compiler will by default download a pre-built
binary of the Haskell-part from Github. If you want to run the compiler with the Haskell-part you've just built, set the path
to the Haskell-binary in a GREN_BIN environment variable, like: GREN_BIN=$PWD/gren node ./app.
You might also want to study the scripts defined in devbox.json. You can execute one of these scripts by running
devbox run <script_name>.
관련 프로젝트 살펴보기
불러오는 중…