From 2bc09f41e5adcb19036765a0a57f5c691aa74785 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Wed, 6 Apr 2022 08:56:51 +0530 Subject: [PATCH] Stack miss calculation bug fix & minor changes --- README.md | 4 +-- docs/templates/index.html | 2 +- docs/templates/try-online.html | 2 +- src/pk_compiler.c | 35 +++++++++++++++++------ src/pk_core.c | 29 +++++++++++++------ src/pk_var.h | 5 ++-- src/pk_vm.c | 3 -- tests/random/string_algo.pk | 51 ++++++++++++++++++++++++++++++++++ 8 files changed, 105 insertions(+), 26 deletions(-) create mode 100644 tests/random/string_algo.pk diff --git a/README.md b/README.md index 8346801..e124f11 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Pocketlang** is a small (~3000 semicolons) and [fast](https://github.com/ThakeeNathees/pocketlang#performance) functional language written in C. It's syntactically similar to Ruby and it can -be learned [within 15 minutes](https://thakeenathees.github.io/pocketlang/getting-started-learn-in-15-minutes.html). +be learned [within 15 minutes](https://thakeenathees.github.io/pocketlang/docs/v0.1.0/Reference/Cheat-Sheet.html). Including the compiler, bytecode VM and runtime, it's a standalone executable with zero external dependencies just as it's self descriptive name. The pocketlang VM can be embedded in another hosting program very easily. @@ -33,7 +33,7 @@ end ## Try It Now -You can [try pocketlang on your browser](https://thakeenathees.github.io/pocketlang/getting-started-try-it-now.html). +You can [try pocketlang on your browser](https://thakeenathees.github.io/pocketlang/try-online.html). It's a [WebAssembly](https://webassembly.org/) build of the VM compiled using [emscripten](https://emscripten.org/). Note that in the webassembly version of the language, some features (input, file handling, relative import, etc.) have disabled, has limited memory allocations, and the stdout calls might be slower. diff --git a/docs/templates/index.html b/docs/templates/index.html index 47e9b9f..bad2629 100644 --- a/docs/templates/index.html +++ b/docs/templates/index.html @@ -40,7 +40,7 @@

Get Started - Try Online + Try Online
diff --git a/docs/templates/try-online.html b/docs/templates/try-online.html index 649e411..004e335 100644 --- a/docs/templates/try-online.html +++ b/docs/templates/try-online.html @@ -19,7 +19,7 @@