Friday, December 21, 2018

Setting up the assign opcode

How does Default expand this source:

myname = 7 * yourname;

The following sequence places the assign 'opcode' first, then the name of the variable, then lets make_expr  process the 'formula that follows.Make_expr justt calls shun). The assignment is thus executable and repeatable.

assign_tag is just another linux command handled by the Default run time.  Once Default script is tokenized, the lay out is simple, using recursive procedures. Tokenizing is really the hardest part of scripts. All the scripts are nested block, all follow a similar recursive layout, if they are simple. In Default syntax, one can actually type the source above directly into the command line.

args[*argc]="assign_tag";
*argc +=1;
args[*argc]= T.src;
*argc += 1;
make_expr(argc,args);

No comments: