togos / togvm
Installs: 6 168
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/togos/togvm
Requires
- php: >=5.4
- earthit/php-common: ^1.0.0
- ryprop/nife: ^0.2
Requires (Dev)
- togos/php-n2r: ^0.0.5
- togos/simpler-test: ^1.2.1
- togos/togvm-spec: ^1.0.2
README
PHP library for parsing a customizable language into TOGVM data structures.
There's also an interpreter, in case you want to evaluate expressions directly rather than, like, compiling them to SQL or COBOL or whatever.
PHP Version
PHP 5.4 is required primarily for support for $this in closures.
Otherwise this could be PHP 5.2-compatible.
Test Vectors
While developing the test vectors, you can make a symlink to the test vector directory from the root TOGVM-PHP directory, e.g.
ln -s ../TOGVM-Spec/test-vectors ./test-vectors
If that's not present, the unit tests will look for vendor/togos/togvm-spec/test-vectors.