Skip to content

Installation

Andrew Johnson edited this page Dec 1, 2024 · 6 revisions

Install Compiler

LSTS is packaged by default with the LM compiler.

git clone https://github.com/andrew-johnson-4/lambda-mountain.git
cd lambda-mountain
make install

This will install an lm command and some platform libraries.

Hello World

To test that our compiler installation works, create a hello.lsts file.

import LIB/default.lm;

print("hello world\n");

Now you can compile it with the lm command. Running it also requires a C compiler.

lm hello.lsts
cc tmp.c
./a.out

The program should print hello world.

Clone this wiki locally