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

2h 20m 58s logged

Devlog 5

omg i’m gonna literally combust

Anyway, so for the past like 2 hours of coding, I’ve been working on my documentation. And I’ve got to say, it absolutely sucks. It’s like I’m writing an essay for my English class. I’m have like 20000 characters, so in like one day my html becomes the largest file here. Big sigh. I’m not even done yet T-T. The reason that I’m so pissed off is I found another bug that I can’t even explained what happened.

Some issue in incrementing variables

So in programming languages, if you want to change a variable by some amount you would run (I’m just gonna explain in pseudocode)
x = x + 1
And this is what you would run (or x += 1 or x ++ or ++x but you get the idea).

So in Goa, you would run

SET (x ADD (x 1))
Basically, it sets the value of x to the sum of x and 1. However, when I run this, I get ERROR: Undefined variable: ADD. However, when I run
SET (x ADD(x 1)) with no space between the ADD statement and the arguments, it works! I have no idea why I can put a space after the SET statement but not after the ADD! I need to check through my tokenizer and parser to see where it is, but the closest issue I can think of is that my code is looking for the next character after the statement, not the next character after the first whitespace.

0
31

Comments 0

No comments yet. Be the first!