Skip to content

Commit 0c542c1

Browse files
authored
Update README with use section
1 parent e9104a5 commit 0c542c1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,23 @@ Just in case it needs to be said, yes this is a joke and has no actual uses, nor
1111
All relevant code in main.py.
1212

1313
Use:
14-
14+
```
1515
@goto_mutator << Decorate func you want to patch GOTOs into with mutator
1616
some_func():
1717
pass << Do regular stuff
1818
pass
1919
pass
20-
x = "#GOTO_mylabel" << This is the goto statement, var name does not matter, statement has to be a string const, staring with key work `#GOTO_` after that label name
20+
x = "#GOTO_mylabel" << This is the goto statement, var name does not matter,
21+
statement has to be a string const, staring with key work #GOTO_ after that label name
2122
pass
2223
pass
23-
pass << Do more regular stuff, of course after patching the goto statemet will skip right over this secion
24+
pass << Do more regular stuff, of course after patching
25+
the goto statemet will skip right over this secion
26+
2427
x = "#GOTOLABEL_mylabel" << This is the LABEL we will that will be jumped to
2528
pass
2629
pass << Keep doing stuff
27-
30+
```
2831
You should be able to define as many jumps and labels as desired, mutator will build a map and patch in jumps.
2932

3033
Live REPL demo here:

0 commit comments

Comments
 (0)