radare2/shlr/spp
2019-05-14 01:38:17 +02:00
..
p Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
BUGS
config.def.h Make SPP less dependent on system(3) and popen(3) 2018-12-15 18:32:24 +01:00
LICENSE
main.c Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
Makefile Fix spp warnigs (#14059) 2019-05-14 01:38:17 +02:00
meson.build Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
r_api.c Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
r_api.h Fix spp warnigs (#14059) 2019-05-14 01:38:17 +02:00
README.md
spp.c Fix spp warnigs (#14059) 2019-05-14 01:38:17 +02:00
spp.h Fix spp warnigs (#14059) 2019-05-14 01:38:17 +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);