4 projects tagged "Pre-processors"
EmPy is a system for embedding Python expressions and statements in template text. It takes an EmPy source file, processes it, and produces output. This is accomplished via expansions, which are special signals to the EmPy system and are set off by a special prefix (by default the at sign, '@'). It can expand arbitrary Python expressions and statements in this way, as well as a variety of special forms. Textual data not explicitly delimited in this way is sent unaffected to the output, allowing Python to be used in effect as a markup language. Also supported are callbacks via hooks, recording and playback via diversions, and dynamic, chainable filters. The system is highly configurable via command line options and embedded commands.
rfc2mib is a short Tcl script which may be used to extract MIB (Management Information Base), PIB (Policy Information Base), and ASN.1 modules from an RFC document. Unlike most extractors, this script is smart enough to recognize ASN.1-style comments prior to or within the module header. It also recognizes the use of the "TagDefaults" part of the module header (not used by MIB modules), module headers that are broken across multiple lines, and macro definitions.
Minimac is a minimalist, general purpose text macro processor. Its simplicity should make it particularly well suited as a front end preprocessor for little language compilers. It is meant to be simpler to use than m4. It uses an explicit argument stack, and user functions are defined by concatenation (similar to the Forth language). Macro expansion is delayed to the last possible moment. The software is currently in alpha release.