-
Developed: Until ~December 2018
-
Status: Experimental / Discontinued
Harp Script is a simple, experimental scripting language developed around 2018.
-
Limited functionality
-
Simple math operations
-
Console I/O
-
Some built-in functions related to dxlib
- Direct-to-Bytecode (No AST): Does not build an explicit Abstract Syntax Tree (AST). A recursive descent parser with an operator-precedence stack generates bytecode directly during parsing. (See
express.cpp) - Simple FFI (Foreign Function Interface): Uses WinAPI (
LoadLibrary/GetProcAddress) to dynamically load.dllfiles (e.g.,DxLib.dll). These are wrapped as built-in functions (infunc) that can be called directly from the VM. (Seememory.h,infunc.cpp) - Stack-Based VM: A simple stack-based virtual machine, written in C++, interprets and executes the bytecode. (See
execute.cpp)
-
Write your code in a.harp.
-
Run harp.exe.
-
Bytecode will be generated as the output file.
-
And you can see the result. (Console or Dxlib program)
Please refer to the files inside the example folder for syntax references and examples.
This project is discontinued. Issues or pull requests may not be fixed or will be handled non-periodically.