Previous: , Up: Preprocessing: The Secret Weapon   [Contents]


2.3.8.2 Swapping the Engine

The beauty of STARTER’s philosophy is that you aren’t locked in. Don’t like m4? You can swap the preprocessor for any command-line tool you prefer.

Returning to our gsettings configuration, you can change the preprocessor with a single command. For example, if you want to bypass preprocessing entirely and just read the file "as-is," you can use the standard cat command:

gsettings set org.starter.core rules-preprocessor 'cat {F}'

In this syntax, {F} is a placeholder that STARTER automatically replaces with the path to your rules file. This flexibility means you could even use a Python script, a custom parser, or a simple text filter as your preprocessor.