diff --git a/README.md b/README.md index c83ed59..35e8ba6 100644 --- a/README.md +++ b/README.md @@ -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 @@ -43,21 +56,21 @@ 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) @@ -65,7 +78,7 @@ $ ./velisp-0.6.11-linux-x64 examples/calc.lsp 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) @@ -73,7 +86,7 @@ $ ./velisp-0.6.11-linux-x64 examples/mines.lsp 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) @@ -81,23 +94,23 @@ $ ./velisp-0.6.11-linux-x64 examples/fifteen.lsp ### 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) diff --git a/package-lock.json b/package-lock.json index 1e0f4d0..e3fe463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "VeLisp", - "version": "0.6.11", + "version": "0.6.12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ae72d85..6ea0169 100644 --- a/package.json +++ b/package.json @@ -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",