sentenceInterpretYa: ; HSPL Human Speakable Programming Language
October 21, 2011, hexDay 15, hexWeek 2,1, ya
14:42 hmmm, perhaps I should get the ya function working, of writing to file
likely should add them to a new book, leave the root book for root functions.
it would allow for making more proper functions, that modify the sentence by adding a so argument.
then a look up would be able to find the result, rather than having to go through the hassel of resolving.
17:07 I’ve been thinking about lysh, lambda sysh, or three-clause sysh, since most of the functions only have 2 arguments..
….. I guess it’s been done before, but it would be fairly easy to write an interpreter for such a thing,
also the whole three clause thing has been used for intermediary representation and bytecode.
that was kind of the idea with the older version of sysh… though datastruc made it rather confusing…
okay so lets figure this out…. how will it run? I write something and read stuff….
basically modifying a file, and it’s sentences, variables can be stored as sentence arguments…
name su value bo variable be ya
danger being that we’re making a full-fledged programming language, in assembly, rather than through our virtual machine…
so how do we do the virtual machine stuff huh? like maybe we should make a bytecode interpreter kinda thing…
but we can simply optimize by having the equivalent spacing option, though I guess that might not work so easily.
sysh was never meant to be the full fledged HSPL, it’s just we’ve gotten so good at assembly coding it’s becoming that way…
maybe we’ll be able to finish this, even though it’s all sentence based now…
currently I have the do functions working with sentenceInterpret,
perhaps I need to make a sentenceWrite or sentencePut for ya
19:37 so what’s the algorithm for the sentencePut function?
input be context(book), and sentence,
algorithm is sentenceSpace bookAppend
20:20 wrote sentenceInterpretYa
October 20, 2011, hexDay 14, hexWekk 2,1, ya
09:54 so what now? seems like I might get turing complete with a few more additions,
need mov, cmp, jmp and some conditional jmps
;input be context(book), and sentence,
;algorithm is sentenceSpace, textAppend or textInsert