From f4d2fa3fb2f41a0231040f7e005c4bd467855620 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Sat, 14 Nov 2026 16:48:21 +0100 Subject: s/zisp/xisp/g on notes --- notes/250219-reader.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'notes/250219-reader.md') diff --git a/notes/250219-reader.md b/notes/250219-reader.md index d331897..d114911 100644 --- a/notes/250219-reader.md +++ b/notes/250219-reader.md @@ -14,7 +14,7 @@ that are wildly explored here. See late addition at the bottom.* OK but hear me out... What if there were different reader modes, for code and (pure) data? -I want Zisp to have various neat syntactic extensions (see [syntax +I want Xisp to have various neat syntactic extensions (see [syntax sugar](250210-sugar.html) note) for programming purposes anyway, like the lambda shorthand, and these shouldn't apply to configuration files, either. (Although they seem unlikely to occur by accident.) @@ -244,7 +244,7 @@ the decompiler: values --[encode]--> values-data --[data-writer]--> data-file That gives you a file containing only data, but the data is the -encoded format of various data structures Zisp recognizes... +encoded format of various data structures Xisp recognizes... Actually, that may include compiled procedures as well. Now the simple config file case, being serialized: @@ -410,7 +410,7 @@ to allow arbitrary code execution to happen just when reading a data file and decoding it. So something exceptional would need to happen for this to work. Or maybe not. -Remember that [compilation is execution](250210-compile.html) in Zisp, +Remember that [compilation is execution](250210-compile.html) in Xisp, meaning that compiling a file looks like this in pseudo-Scheme: (define env (null-environment)) ;start out empty @@ -490,7 +490,7 @@ Just to summarize what I actually ended up implementing in the end: would be `'|foo bar|` that also parses into `(#QUOTE . |foo bar|)`. All three parse into the exact same data in memory. -- If you want to use Zisp expressions for something like config files +- If you want to use Xisp expressions for something like config files and want to type `"foo bar"` instead of `|foo bar|` but don't want to deal with `(#QUOTE . |foo bar|)` then just run a decoder on the data before using it. You'll need to run a decoder on it anyway if @@ -510,7 +510,7 @@ Just to summarize what I actually ended up implementing in the end: `(code (string-append foo x))` thus changing the meaning of the embedded code, you have two options: - 1. Make your entire config file be Zisp code written in a DSL. + 1. Make your entire config file be Xisp code written in a DSL. 2. Wrap code snippets in one layer of quoting like `'(...)` which will effectively protect nested uses of `#QUOTE` from the data @@ -524,7 +524,7 @@ Just to summarize what I actually ended up implementing in the end: config file could explicitly decode these super-quoted code snippets before evaluating them. -See here for full documentation of Zisp expressions as implemented: +See here for full documentation of Xisp expressions as implemented: -- [Informal docs](https://tkammer.de/zisp/doc/c1/1-parse.html) -- [Formal spec](https://tkammer.de/zisp/doc/c1/grammar/) +- [Informal docs](https://tkammer.de/xisp/doc/c1/1-parse.html) +- [Formal spec](https://tkammer.de/xisp/doc/c1/grammar/) -- cgit v1.2.3