From 3e21098d95d08cb294cc56f53bee7b5beaff8df6 Mon Sep 17 00:00:00 2001 From: zawz Date: Fri, 21 May 2021 16:24:32 +0200 Subject: [PATCH] update doc: add string processors --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e0ded7b..718b72e 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,18 @@ these features will continue working with undesired behavior. Array argument with `[@]` does not expand into the desired multiple arguments. +## String processors + +You can use prefixes in singlequote strings to apply processing to the string contents.
+To use string processors, prefix the string content with a line in the form of `#`. +Example: +```shell +sh -c '#LXSH_PARSE_MINIFY +printf "%s\n" "Hello world!"' +``` + +As of now only the processor `LXSH_PARSE_MINIFY` is implemented, but more may come later + ## Other features ### Output generated code @@ -154,7 +166,7 @@ Depends on [ztd](https://github.com/zawwz/ztd) ## Building -Use `make -j13` to build.
+Use `make -j` to build.
You can use environment variables to alter some aspects: - DEBUG: when set to `true` will generate a debug binary with profiling - RELEASE: when set to `true`, the version string will be generated for release format