Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add GOSUB #1

@fogus

Description

@fogus

Baysick should support subroutines. They would work something like this:

```
10 PRINT “Subroutine test”
20 LET (‘a := 0)
30 PRINT "Variable is " % ’a // prints 0
40 GOSUB inc
50 PRINT "Variable is " % ’a // prints 1
60 SUB “inc”
70 LET (’a := ’a + 1)
80 RETURN
90 GOSUB 60
100 PRINT "Variable is " % ’a // prints 2
110 END
```

-m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions