You are browsing as a guest. Sign up (or log in) to start making projects!

1h 5m 25s logged

Devlog 7 - Goa 0.9 Beta

My coding language is now close to release!

Try it out at: https://goalang.vercel.app

In this update, I think I did a good amount of work on the language. I have added float support. Basically, for each variable, now instead of just storing a value, each variable also stores a type - integer or float.

With this new type, we have some things to define.

Firstly, I’m making Goa have strict typing. To convert between types, use the TOINT and the TOFLOAT statements. Goa also uses safe promotion, meaning calculations involving two integers will produce an integer, while calculations involving at least one float will always produce a float.

New stuff!!

New comparators!!!

I can’t believe I didn’t include this earlier, but now here they are! The <= and the >= comparators!

New changes and clarifications… (not as fun)

The DIV statement now only returns integers. The EXP statement now only takes positive exponents and if your base is negative, only odd exponents. The BASE statement now only takes integer statements.

New statements!!!!

With the DIV statement now only returning integers, run the FDIV statement to return floats! Now that the EXP statement no longer takes negative exponents, run the ROOT statement to do roots!

What’s next?

For the 1.0 full release, I plan to add a lot of statements. I also want to add OR and AND statements… but that’s a little too much work for me. I don’t know, I’ll see. I’m planning on adding trig functions, more random functions, gcd and lcm, and more.

I’ll see you guys later!

0
6

Comments 0

No comments yet. Be the first!