pocketlang/scripts
Thakee Nathees 8e04748f86 some builtin class methods were added
- check a string contains another with `in` keyword
- Number: isint, isbyte
- String: find, replace, split, startswith, endswith, strip
- Map: clear, has, get, pop
- list: insert, clear, find, pop
- removed str_sub builtin function as its redunent since we have
  range slice over strings.
- moved lower, upper attributes of strings as methods
2022-05-23 23:47:28 +05:30
..
amalgamate.py Minor code enhancements (read bellow) 2022-05-21 04:15:30 +05:30
build.bat amalgamation added and libs moved to src/libs/ 2022-05-20 04:49:50 +05:30
download_premake.py scripts are moved to scritps/ directory 2022-05-01 14:12:27 +05:30
generate_native.py scripts are moved to scritps/ directory 2022-05-01 14:12:27 +05:30
leak_detect.py Minor code enhancements (read bellow) 2022-05-21 04:15:30 +05:30
premake5.lua amalgamation added and libs moved to src/libs/ 2022-05-20 04:49:50 +05:30
README.md super class method call implemented 2022-05-01 20:24:07 +05:30
run_benchmarks.py scripts are moved to scritps/ directory 2022-05-01 14:12:27 +05:30
run_tests.py some builtin class methods were added 2022-05-23 23:47:28 +05:30
static_check.py amalgamation added and libs moved to src/libs/ 2022-05-20 04:49:50 +05:30

This directory contains all the scripts that were used to build, test, measure performance etc. pocketlang. These scripts in this directory are path independent -- can be run from anywhere.

Using premake

To download the premake which is only 1.3 MB stand alone binary, run the bellow command (on windows it might be python and not python3) or you can download it your self at https://premake.github.io/download.

python3 download_premake.py

It will download and place the premake5.exe (in windows) binary next to it, next run the following command to generate Visual studio solution files.

premake5 vs2019

for other project files and information see: https://premake.github.io/docs/

Running Benchmarks

Build a release version of the pocketlang (using make file or the build.bat script) and run the following command to run benchmarks. It'll generate a benchmark report named report.html in this directory.

python3 run_benchmarks.py

Other Scripts

generate_native.py - will generate the native interface (C extension for pocketlang) source files from the pocketlang.h header. Rest of the scripts name speak for it self. If you want to add a build script or found a bug, feel free to open an issue or a PR.