Skip to content

BeRo1985/poca

Repository files navigation

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.

About

Yet another scripting language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages