git @ Cat's Eye Technologies Wanda / f81cb34
Small edit to doc. Chris Pressey 6 years ago
1 changed file(s) with 13 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
00 Wanda
11 =====
22
3 Wanda is a Forth-like language with string-rewriting semantics,
4 meaning it is arguably not fair to call it "concatenative",
5 or even "stack-based". (For a more detailed explanation of what
6 these things mean, see the Tutorial section.)
3 Wanda is a Forth-like language. Despite being Forth-like, it
4 is arguably not fair to call it "concatenative", or even
5 "stack-based", because it is based on a string-rewriting semantics.
6
7 The remainder of this document will describe the language and
8 will attempt to elucidate the above statement.
79
810 Basics
911 ------
3840
3941 2 +
4042 ===> 2 +
43
44 So, we see that, despite looking like and evaluating
45 like a Forth program, there is no stack separate from
46 the program. "2" is not an instruction that pushes
47 the value 2 onto the stack, it's just a "2".
48
49 It's all just a string which gets rewritten.
4150
4251 ### Some other builtins
4352