LIL Preprocessor

LIL Preprocessor (lip) is a very simple text preprocessor based on the LIL scripting language and specifically the C LIL implementation's support for embedded LIL code in text fragments (see lil_embedded() function information in LIL's readme.txt file).

The LIL Preprocessor allows processing text files that contain embedded code fragments in LIL placed between <?lil and ?> in a similar fashion to PHP and classic ASP. Any text outside these tags is printed in the standard output and any code inside is interpreted by the LIL interpreter hosted by the preprocessor (any string printed via a call to print by the code is also written to standard output). In addition it allows for variables (defined by LIL code) to be embedded in the text itself

The program is very simple and it mostly relies on LIL to do the actual preprocessing with a bit of additional filtering on its own for the special variables inside the text. In addition scripts can request the process of another file as well as call external programs (though at the moment it is not possible to capture the programs' output).


Copyright © 2016-2021 Kostas Michalopoulos, released under zlib license (but keep this note in mind).