Skip to content

Commit

Permalink
Update installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Mar 21, 2019
1 parent 9b64734 commit 8e21ccf
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions doc/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,43 @@
This is the easiest way.

Install prerequisites and LFortran (works on both Linux and Mac):
```
```bash
conda create -n lfortran python=3.7 pytest llvmlite prompt_toolkit
conda activate lfortran
pip install antlr4-python3-runtime
tar xzf lfortran-0.1.tar.gz
cd lfortran-0.1
pip install .
```

Now the `lfortran` environment has the `lfort` compiler available.

Optional: run tests:
```
```bash
py.test --pyargs lfortran
```


## From Git

This works both on Linux and a Mac:

```
```bash
conda create -n lfortran python=3.7 pytest llvmlite prompt_toolkit
conda activate lfortran
pip install antlr4-python3-runtime
```

Install Java and then ANTLR, say, into `~/ext`:
```
```bash
export CLASSPATH="$HOME/ext/antlr-4.7-complete.jar:$CLASSPATH"
```

Build:
```
```bash
./build.sh
```

Run tests:

```
```bash
py.test
```

Run prompt:
```
./prompt
Run an interactive prompt:
```bash
./lfort
```

0 comments on commit 8e21ccf

Please sign in to comment.