Friday, December 14, 2018

Objects in Hardly

You get one kind, stacks, a built in. So for example:

MyClass Stack

Makes a stack referenced with MyStack, where MyStack is treated as a dictionary name. Then we have:
MyStack

POP MyStack YourStack SWAP MyStack POP YourStack PUSH.

We can push and pop our stacks all day long.
Can we push the program counter?
PC 4 INCR JUMP
Push the program counter (argc?), and jump 4 spaces. One could make a game of it.
Shunt is:
STDIO One SHUNT  # One is a definition meaning mode one. STDIO can appear in to formats for SHUNT.

When interfacing with Default, Shunt uses Mode Two, the args are re-parsed and in the args pointer list. The anything one does with user stack they can do with stdio sack.  There is only one sdtio port on the bus, the Bus.

In moe one, jus issue the equivalent of:
Shunt -m=1 "While(here) { return(0);}

And if the default tables are loaded, Shunt should replace your script with the same in rpn notation, Hardly ready.  Anything on the Bus can use Shunt, I just capitalize it for Hardly reasons.

How is default?
I am working with the long file. It shrunk because in adopting the single file, I normalized all the key terms table, gained space. It is  compiling, and  coming up. Another two days and we Default. At 780 lines of code, something like that. I have gcc engine.c working without errors. Using Default with Hardly iany effort.


No comments: