On 2023-01-24 10:49 p.m., Sellam Abraham via cctalk wrote:
On Tue, Jan 24, 2023 at 6:41 PM Steve Lewis via cctalk
<
cctalk(a)classiccmp.org> wrote:
BTW, I've wondered if some form of
stenography could be used for software
development. In my mind, it would make sense to just program directly in
a kind of Abstract Syntax Tree (AST) from the beginning - why bother with
all the syntaxic sugar and peddling ascii text characters around a file to
form a program. So now I wonder if "building" a program using an AST
might be possible in VR.. you "grab" a FOR loop virtually from a box on the
left, add it to your program tree, and build out from there decorating the
tree....
Are you familiar with Google Scratch?
https://scratch.mit.edu/
Add the VR interface and you basically have what you describe.
Sellam
I some how like meta II, better than this new stuff.
Cards in,Cards out.
Needed to tweek my assembler on the home brew computer
to handle local variables.
!int g
g rs 4
c rs 4
! foo-bar(int a,b)
! int c; /* local */
! begin
.local
a: rs 4
b: rs 4
.args
c rs 4
foo-bar:
lea s s - _local_
! c = a + b - g
ld r1 a
add r1 b
sub r1 g
st r1 c
! return c
ld r1 c
lea s s _local_
ret
lea s s _local
ret
! end
.global
Did any assembler for the old machines handle local variables
or had macros to do the same thing?
Ben.