radare2/shlr/spp
radare 9e08da0fa6
Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046)
- Update spp and force hidden visibility
- Use R_API wisely
- RSys.prefix returns const things
- Use -install_name on Apple
- Fix merged lib visibility linking on Linux
- Use OSTYPE instead of BUILD_OS
- Honor crosscompiler-objcopy and support android like linux
- Add extra missing archives
- Fix for android
- Upgrade spp and sdb
- Skip libr. from symstall
- Add --enable-merged configure option
- Use --enable-merged on ios-sdk
- Upgrade sdb again for js0n
- Kill sys/ios-shell.sh
- Msvc dynamic build fix
2018-05-09 23:31:52 +02:00
..
p Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046) 2018-05-09 23:31:52 +02:00
BUGS Add spp to r2 utils build (#6334) 2016-12-18 09:46:10 +01:00
config.def.h Build radare2 for all iOS archs and the simulator (#8775) 2017-11-03 19:53:11 +01:00
LICENSE Add spp to r2 utils build (#6334) 2016-12-18 09:46:10 +01:00
main.c Update spp with all the fixes not backported 2017-10-09 12:19:17 +02:00
Makefile Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046) 2018-05-09 23:31:52 +02:00
r_api.c Update spp from git and fix integration with rasm2 2016-12-19 03:07:52 +01:00
r_api.h Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046) 2018-05-09 23:31:52 +02:00
README.md Add spp to r2 utils build (#6334) 2016-12-18 09:46:10 +01:00
spp.c Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046) 2018-05-09 23:31:52 +02:00
spp.h Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046) 2018-05-09 23:31:52 +02:00

spp

Author: pancake <pancakenopcodeorg> License: MIT

Description

SPP stands for Simple Pre-Processor.

The primary use of spp is as a templating language, with similarities to PHP and CPP. Allowing to embed scripts in any language in some specific places of the document.

Configuration

SPP binary can be configured by changing the values in the config.h file, this way you can specify which preprocessors you want to include in the parser.

# Edit the config.h file before typing 'make'

See config.def.h as an example

Build

$ make

Installation

$ make install PREFIX=/usr

Embedding

There are no embedding issues with the MIT license and the amount if code is pretty low (~400 LOC), and use the apis:

struct Proc p = {0};
spp_proc_set (&p, "sh", 99);
char *res = spp_eval(&p, "hello {{echo orld}}"
printf ("(%s)\n", res);