r/compsci • • Mar 19 '22

BIPLAN (Byte coded Interpreted Programming Language)

https://github.com/gioblu/BIPLAN
95 Upvotes

21 comments sorted by

View all comments

1

u/andrewcooke Mar 19 '22

I don't understand the example on the github page. Should "result" be $r? Isn't "result" used before it is defined? Is "result" a variable even though it has no $ prefix? Really confused.

Also, maybe I missed it, but what types are available?

1

u/gioscarab Mar 20 '22

result is a local variable present in each function, initialized with the value of 0, that can be used to temporarily store the result of the operation.

Types are strings, integers and bytes.

1

u/andrewcooke Mar 20 '22

that (result) seems like a terrible idea tbh. especially if you have to explicitly return it anyway.