Skip to content

Commit

Permalink
Roll 0.6.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ten0s committed May 24, 2022
1 parent 516e4fd commit dbffe29
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
39 changes: 26 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,32 @@ AutoLISP programs outside of AutoCAD.
#### Linux

```
$ wget https://github.com/ten0s/velisp/releases/download/0.6.11/velisp-0.6.11-linux-x64
$ chmod +x velisp-0.6.11-linux-x64
$ wget https://github.com/ten0s/velisp/releases/download/0.6.12/velisp-0.6.12-linux-x64
$ chmod +x velisp-0.6.12-linux-x64
```

#### Windows

On Windows 10 (with Windows Subsystem for Linux (WSL)):

Install:
1. Windows: Activate WSL: https://docs.microsoft.com/en-us/windows/wsl/install
2. Windows: Open CMD and run: 'bash' in order to start the WSL-bash
3. WSL-Bash: run: 'sudo apt-get install libgtk-3-dev'

Run:
1. Windows: Install a Windows X-Server like VcXsrv: https://sourceforge.net/projects/vcxsrv
3. Windows: Start the X-Server with: 'vcxsrv :0 -ac -terminate -lesspointer -multiwindow -clipboard -dpi auto'
4. Windows: Open CMD and run: 'bash' in order to start the WSL-bash
5. WSL-Bash: run: 'DISPLAY=:0 velisp-0.6.12-linux-x64'

TODO

### Run REPL (Read–Eval–Print Loop)

```
$ ./velisp-0.6.11-linux-x64
VeLisp 0.6.11 on linux
$ ./velisp-0.6.12-linux-x64
VeLisp 0.6.12 on linux
Type ".help" for more information
> (+ 1 2)
3
Expand All @@ -43,61 +56,61 @@ ADD
Calculate 10th (default) Fibonacci number

```
$ ./velisp-0.6.11-linux-x64 examples/fib.lsp
$ ./velisp-0.6.12-linux-x64 examples/fib.lsp
55
```

Calculate 11th Fibonacci number

```
$ ./velisp-0.6.11-linux-x64 examples/fib.lsp 11
$ ./velisp-0.6.12-linux-x64 examples/fib.lsp 11
89
```

Run Calculator

```
$ ./velisp-0.6.11-linux-x64 examples/calc.lsp
$ ./velisp-0.6.12-linux-x64 examples/calc.lsp
```

![App Calc Image](/images/app-calc.png)

Run Minesweeper

```
$ ./velisp-0.6.11-linux-x64 examples/mines.lsp
$ ./velisp-0.6.12-linux-x64 examples/mines.lsp
```

![App Mines Image](/images/app-mines.png)

Run Fifteen Puzzle

```
$ ./velisp-0.6.11-linux-x64 examples/fifteen.lsp
$ ./velisp-0.6.12-linux-x64 examples/fifteen.lsp
```

![App Fifteen Image](/images/app-fifteen.png)

### Run code from standard input

```
$ cat examples/fib.lsp | ./velisp-0.6.11-linux-x64
$ cat examples/fib.lsp | ./velisp-0.6.12-linux-x64
55
```

```
$ cat examples/fib.lsp | ./velisp-0.6.11-linux-x64 -- 11
$ cat examples/fib.lsp | ./velisp-0.6.12-linux-x64 -- 11
89
```

```
$ echo '(alert "Hello from VeLisp!")' | ./velisp-0.6.11-linux-x64
$ echo '(alert "Hello from VeLisp!")' | ./velisp-0.6.12-linux-x64
```

![Alert Hello From VeLisp Image](/images/alert-hello-velisp.png)

```
$ echo '(alert (strcat "Hello from " (argv 1) "!"))' | ./velisp-0.6.11-linux-x64 -- Arg
$ echo '(alert (strcat "Hello from " (argv 1) "!"))' | ./velisp-0.6.12-linux-x64 -- Arg
```

![Alert Hello From Arg Image](/images/alert-hello-arg.png)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "VeLisp",
"version": "0.6.11",
"version": "0.6.12",
"description": "AutoLISP / DCL compatible interpreter to run AutoCAD independent code",
"main": "src/main.js",
"type": "module",
Expand Down

0 comments on commit dbffe29

Please sign in to comment.