From 3e11d78f5425938003bf507c440cce568898925f Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 4 Mar 2024 12:43:36 +0300 Subject: [PATCH] Add another note about evaulation --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 5e692d2..fdc19be 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,30 @@ which will be available in every HTMNIX file and the HTMNIX REPL > - `let in`'s. > - Expressions that have spaces in them. +> Adding onto the previous note, if you want to see how your +> HTMNIX file is **actually** evaluated, you can run the following command: +> +> ```sh +> nix-instantiate --parse html.nix +> ``` +> +> This will insert a ton of parens everywhere, thus un-ambiguating the parsing. +> Here is an example: +> +> ```nix +> nix-instantiate --parse - << :end +>