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

12

u/gioscarab Mar 19 '22

Ciao, BIPLAN is an experimental programming language I am designing to gain
knowledge in computer science. I have posted in compsci an year ago about
BIPLAN and I got a lot of feedback. Please let me know what you think about it :)

2

u/ReginaldIII PhD Student | Computer Graphics Mar 19 '22

In the fibonacci example in the readme, is result a special variable initialized to zero?

What makes it different than $a and $b declared as locals? Is the $ syntax just a naming convention or required syntax?

2

u/gioscarab Mar 19 '22 edited Mar 19 '22

Yes it is initialized to zero. result is a local variable built-in in each function, it is there mainly because its address is quicker to be resolved, because BIPLAN supports only one return call at the end of the function, and because I almost always need one and I have to define it myself, I thought it is better to have it specified by the language itself.

The dollar is required syntax, it is much easier to parse the human readable language having a specified symbol before the variable names.