You are not too geeky when you make macros for your favorite word processer, still done! M4 macro is no much different than a word processer macro. Here is an example of an install layout, this layout expands into a set of G machine configuration triple, it is loading an operator into the machine.
INSTALL(7)
SCRIPT(`select key,link,pointer from ? where rowid == ?;')
PROPERTY(DESCENT)
PARM(Self_key) inc_pc
PARM(Self_rowid) inc_pc
I am telling the G machine that the link number 7 is associated with that particular SQL script and uses DESCENT pointer counting. It defines two parameters, the self table, the ontology stream currently in control; and the self rowid, the G machine,s copy of where the self graph is, on its self traversal. Whenever this type of link is traversed, G will read the next instruction and repeat.
Normally G does not get and rows, G only gets active when ever an operator returns from a longer operation. The G does pointer arithmetic, to catch up. Is the operatiion up there useful?
Dunno, still in the lab.
No comments:
Post a Comment