Tidy up
This commit is contained in:
103 files changed
+3663
-3779
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
**Mini Triangle Programs** -$parse$-> **AST** -$Code\space Generation$-> **TAM Programs** -$execute$ -> **Output**
|
||||
|
||||
Before we could generate a list of instructions to be executed in sequence, now we need to implement code thats conditionally executed or executed multiple times.
|
||||
Before, we could generate a list of instructions to be executed in sequence; now we need to implement code that's conditionally executed or executed multiple times.
|
||||
|
||||
```haskell
|
||||
--Code for dealing with functions and commands
|
||||
@@ -71,7 +71,7 @@ JUMPIFZ "label3"
|
||||
|
||||
Labels must **always** be **unique**.
|
||||
|
||||
This would require a global variable in our compiler to count the number of labels, haskell doesnt not allow global variables.
|
||||
This would require a global variable in our compiler to count the number of labels; Haskell does not allow global variables.
|
||||
|
||||
We can use the `stateMonad` instead.
|
||||
|
||||
|
||||
Reference in new issue
Block a user