diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-10 22:07:28 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-10 22:07:28 +0100 |
| commit | f88b11d224ae29bd4cdc52048a116cb45322271b (patch) | |
| tree | ce931a0c173fc7e2d294c192cc064ba0afa2201b /src/lib.rs | |
| parent | 0f25e98b903f6608d09ad8bfd9ca5d00fec4cec6 (diff) | |
| download | sylt-f88b11d224ae29bd4cdc52048a116cb45322271b.tar.gz | |
add break and continue
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -397,6 +397,14 @@ pub enum Op { /// /// {A} - JmpFalse(n) - {} JmpFalse(usize), + /// Sets the instruction pointer + /// to the given value. And also pops + /// the given number of values. + /// + /// Used for 'break' and 'continue'. + /// + /// {A, B, C} - JmpNPop(n, 2) - {A} + JmpNPop(usize, usize), /// Compares the two topmost elements /// on the stack for equality, and pushes |
