From 7375d37d1468ac606361445a93230766982081d7 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sat, 31 Oct 2026 19:12:40 +0100 Subject: [PATCH] Started work on whish the shell for HOESx1 currently the prompt and tokeniser are complete --- src/hexparse/root/bin/whish.hexparse | 3 + src/hexparse/root/etc/DefaultApplication.txt | 1 + src/hexpattern/root/bin/whish.hexpattern | 294 ++++++++++++++++++ .../root/etc/DefaultApplication.txt | 1 + 4 files changed, 299 insertions(+) create mode 100644 src/hexparse/root/bin/whish.hexparse create mode 100644 src/hexparse/root/etc/DefaultApplication.txt create mode 100644 src/hexpattern/root/bin/whish.hexpattern create mode 100644 src/hexpattern/root/etc/DefaultApplication.txt diff --git a/src/hexparse/root/bin/whish.hexparse b/src/hexparse/root/bin/whish.hexparse new file mode 100644 index 0000000..0ae12d2 --- /dev/null +++ b/src/hexparse/root/bin/whish.hexparse @@ -0,0 +1,3 @@ +// Author: Stefan_0306 +// Requires: hexcassettes, hexcellular, moreiotas +duplicate("[")splat,get_caster,string/iota,add,duplicate,abs,num_2,sub,num_0,swap,slice(_aqqqq)inspect,splat,observe_property("tmp")splat,index_of("WorkingDirectory.txt")splat,index_of,duplicate,const/null,equals(mask_v(_aqqqq)inspect,splat,duplicate,observe_property("tmp")splat,2dup,index_of("WorkingDirectory.list")splat,empty_list,replace,replace,set_property("/")splat)(unappend,mask_v-,duplicate("home")splat,equals(mask_v("~")splat)(duplicate,const/null,equals(mask_v("/")splat)empty_list,if,eval)if,eval)if,eval("]$ ")splat,add,add,swap,add,print,mask_v,string/empty,string/split(read/local,num_0,rotate,replace,write/local(read/local,num_0,index("\"")splat,equals(read/local,num_1,num_1,replace,write/local)(read/local,num_0,index,string/space,equals(read/local,num_2,index,string/empty,not_equals(read/local,duplicate,num_3,index,over,num_2,index,append,num_3,swap,replace,num_2,string/empty,replace,write/local)empty_list,if,eval)(read/local,duplicate,num_2,index,over,num_0,index,add,num_2,swap,replace,write/local)if,eval)if,eval)(read/local,num_0,index("\\")splat,equals(read/local,num_1,num_2,replace,write/local)(read/local,num_0,index("\"")splat,equals(read/local,duplicate,num_3,index,over,num_2,index,append,num_3,swap,replace,num_1,num_0,replace,num_2,string/empty,replace,write/local)(read/local,duplicate,num_2,index,over,num_0,index,add,num_2,swap,replace,write/local)if,eval)if,eval)(read/local,duplicate,num_2,index,over,num_0,index,add,num_2,swap,replace,num_1,num_1,replace,write/local)num_3,last_n_list,read/local,num_1,index,index,eval)swap,string/empty,num_0,string/empty,empty_list,num_4,last_n_list,write/local,for_each,read/local,duplicate,num_3,index,swap,num_2,index,append,print,write/local \ No newline at end of file diff --git a/src/hexparse/root/etc/DefaultApplication.txt b/src/hexparse/root/etc/DefaultApplication.txt new file mode 100644 index 0000000..d545585 --- /dev/null +++ b/src/hexparse/root/etc/DefaultApplication.txt @@ -0,0 +1 @@ +whish \ No newline at end of file diff --git a/src/hexpattern/root/bin/whish.hexpattern b/src/hexpattern/root/bin/whish.hexpattern new file mode 100644 index 0000000..7e6d43f --- /dev/null +++ b/src/hexpattern/root/bin/whish.hexpattern @@ -0,0 +1,294 @@ +Gemini Decomposition +{ + <"["> +} +Flock's Disintegration +Mind's Reflection +Scrivener's Purification +Additive Distillation +Gemini Decomposition +Length Purification +Numerical Reflection: 2 +Subtractive Distillation +Numerical Reflection: 0 +Jester's Gambit +Selection Exaltation +{ + +} +Program Purification +Flock's Disintegration +Observation Purification +{ + <"tmp"> +} +Flock's Disintegration +Locator's Distillation +{ + <"WorkingDirectory.txt"> +} +Flock's Disintegration +Locator's Distillation +Gemini Decomposition +Nullary Reflection +Equality Distillation +{ + Bookkeeper's Gambit: v + { + + } + Program Purification + Flock's Disintegration + Gemini Decomposition + Observation Purification + { + <"tmp"> + } + Flock's Disintegration + Dioscuri Gambit + Locator's Distillation + { + <"WorkingDirectory.list"> + } + Flock's Disintegration + Vacant Reflection + Surgeon's Exaltation + Surgeon's Exaltation + Schrödinger's Gambit + { + <"/"> + } + Flock's Disintegration +} +{ + Derivation Decomposition + Bookkeeper's Gambit: v- + Gemini Decomposition + { + <"home"> + } + Flock's Disintegration + Equality Distillation + { + Bookkeeper's Gambit: v + { + <"~"> + } + Flock's Disintegration + } + { + Gemini Decomposition + Nullary Reflection + Equality Distillation + { + Bookkeeper's Gambit: v + { + <"/"> + } + Flock's Disintegration + } + Vacant Reflection + Augur's Exaltation + Hermes' Gambit + } + Augur's Exaltation + Hermes' Gambit +} +Augur's Exaltation +Hermes' Gambit +{ + <"]$ "> +} +Flock's Disintegration +Additive Distillation +Additive Distillation +Jester's Gambit +Additive Distillation +Reveal +Bookkeeper's Gambit: v +Blank Reflection +Separation Distillation +{ + Muninn's Reflection + Numerical Reflection: 0 + Rotation Gambit + Surgeon's Exaltation + Huginn's Gambit + { + Muninn's Reflection + Numerical Reflection: 0 + Selection Distillation + { + <"""> + } + Flock's Disintegration + Equality Distillation + { + Muninn's Reflection + Numerical Reflection: 1 + Numerical Reflection: 1 + Surgeon's Exaltation + Huginn's Gambit + } + { + Muninn's Reflection + Numerical Reflection: 0 + Selection Distillation + Spacing Reflection + Equality Distillation + { + Muninn's Reflection + Numerical Reflection: 2 + Selection Distillation + Blank Reflection + Inequality Distillation + { + Muninn's Reflection + Gemini Decomposition + Numerical Reflection: 3 + Selection Distillation + Prospector's Gambit + Numerical Reflection: 2 + Selection Distillation + Integration Distillation + Numerical Reflection: 3 + Jester's Gambit + Surgeon's Exaltation + Numerical Reflection: 2 + Blank Reflection + Surgeon's Exaltation + Huginn's Gambit + } + Vacant Reflection + Augur's Exaltation + Hermes' Gambit + } + { + Muninn's Reflection + Gemini Decomposition + Numerical Reflection: 2 + Selection Distillation + Prospector's Gambit + Numerical Reflection: 0 + Selection Distillation + Additive Distillation + Numerical Reflection: 2 + Jester's Gambit + Surgeon's Exaltation + Huginn's Gambit + } + Augur's Exaltation + Hermes' Gambit + } + Augur's Exaltation + Hermes' Gambit + } + { + Muninn's Reflection + Numerical Reflection: 0 + Selection Distillation + { + <"\"> + } + Flock's Disintegration + Equality Distillation + { + Muninn's Reflection + Numerical Reflection: 1 + Numerical Reflection: 2 + Surgeon's Exaltation + Huginn's Gambit + } + { + Muninn's Reflection + Numerical Reflection: 0 + Selection Distillation + { + <"""> + } + Flock's Disintegration + Equality Distillation + { + Muninn's Reflection + Gemini Decomposition + Numerical Reflection: 3 + Selection Distillation + Prospector's Gambit + Numerical Reflection: 2 + Selection Distillation + Integration Distillation + Numerical Reflection: 3 + Jester's Gambit + Surgeon's Exaltation + Numerical Reflection: 1 + Numerical Reflection: 0 + Surgeon's Exaltation + Numerical Reflection: 2 + Blank Reflection + Surgeon's Exaltation + Huginn's Gambit + } + { + Muninn's Reflection + Gemini Decomposition + Numerical Reflection: 2 + Selection Distillation + Prospector's Gambit + Numerical Reflection: 0 + Selection Distillation + Additive Distillation + Numerical Reflection: 2 + Jester's Gambit + Surgeon's Exaltation + Huginn's Gambit + } + Augur's Exaltation + Hermes' Gambit + } + Augur's Exaltation + Hermes' Gambit + } + { + Muninn's Reflection + Gemini Decomposition + Numerical Reflection: 2 + Selection Distillation + Prospector's Gambit + Numerical Reflection: 0 + Selection Distillation + Additive Distillation + Numerical Reflection: 2 + Jester's Gambit + Surgeon's Exaltation + Numerical Reflection: 1 + Numerical Reflection: 1 + Surgeon's Exaltation + Huginn's Gambit + } + Numerical Reflection: 3 + Flock's Gambit + Muninn's Reflection + Numerical Reflection: 1 + Selection Distillation + Selection Distillation + Hermes' Gambit +} +Jester's Gambit +Blank Reflection +Numerical Reflection: 0 +Blank Reflection +Vacant Reflection +Numerical Reflection: 4 +Flock's Gambit +Huginn's Gambit +Thoth's Gambit +Muninn's Reflection +Gemini Decomposition +Numerical Reflection: 3 +Selection Distillation +Jester's Gambit +Numerical Reflection: 2 +Selection Distillation +Integration Distillation +Reveal +Huginn's Gambit \ No newline at end of file diff --git a/src/hexpattern/root/etc/DefaultApplication.txt b/src/hexpattern/root/etc/DefaultApplication.txt new file mode 100644 index 0000000..d545585 --- /dev/null +++ b/src/hexpattern/root/etc/DefaultApplication.txt @@ -0,0 +1 @@ +whish \ No newline at end of file