Yet another scripting language
- Pascal 93.3%
- js 6.3%
- JavaScript 0.3%
| bin | ||
| docs | ||
| examples | ||
| externals | ||
| src | ||
| tests | ||
| vscodeext | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| gitcommitpush | ||
| gitcommitpush.bat | ||
| gitforceupdate | ||
| gitforceupdate.bat | ||
| initsubmodules | ||
| initsubmodules.bat | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| updatesubmodules | ||
| updatesubmodules.bat | ||
Important
The primary repository has moved to git.rosseaux.net/BeRo1985/poca. This GitHub repository is kept up-to-date via push mirroring.
POCA
Yet another scripting language that is still in the design phase - for example, its syntax and built-in standard library are not finalized yet.
Documentation
You can also find many short examples of language features and various POCA idioms in the examples directory.
Dependencies
To build POCA the following dependencies are required:
- FLRE for its regular expression support
- PUCU for its Unicode strings and conversions
- PasMP for its multithreading support
- PasJSON for its JSON support
- pasdblstrutils for its double-precision floating point number and string conversion support
Compilation
Either Delphi >= 7 or FreePascal >= 3.0 is required to build POCA.
Here's how to clone the repo and build POCA using the FreePascal compiler:
# clone
git clone https://github.com/BeRo1985/poca.git
cd poca
# clone dependencies
git submodule init
git submodule update --remote --recursive
# build POCA directly using fpc
fpc -B -O3 -g -gl pocarun.dpr
# or build POCA using Lazarus (adapt the paths to your fpc and lazarus paths)
~/fpcupdeluxe/lazarus/lazbuild --pcp="${HOME}/fpcupdeluxe/config_lazarus" --os=linux -B src/pocarun.lpi
# run a script (ctrl-c to abort)
bin/poca examples/donut.poca
# run POCA's REPL (ctrl-c or ctrl-d to exit)
bin/poca
License
Zlib-licensed as per LICENSE file.