tavmem / buddy

early A interpreter with buddy system space management.
GNU General Public License v2.0
41 stars 10 forks source link

t := 3 #3

Open tavmem opened 8 years ago

tavmem commented 8 years ago
tom@xps ~/buddy/a $ rlwrap ./bud
     A+
     Copyright (C) 1990,1991,1992 Morgan Stanley Group Inc.
     $mode
ascii
     t := 3
 :=: stop
*     
tavmem commented 8 years ago

After commit 14103ddd89af75407e4b1e28e7288166d26b0a1a (partial fix) the error message is resolved, but t has not retained the value.

$ rlwrap -n ~/buddy/a/bud
     A+
     Copyright (C) 1990,1991,1992 Morgan Stanley Group Inc.
     1
 1
     1 2 3
 1 2 3
     2+3
 5
     5 - 3
 2
     +/1 2 3
 6
     $mode
ascii
     $vars
 _argv
     t:=3
     $vars
 t _argv
     t
 t: value
*     $
     _argv
 _argv: value
*     $
     $off
$

Note that both t and _argv seem to exist, but their values cannot be accessed.