0 Members and 1 Guest are viewing this topic.
Hehe, thanks I was actually a little iffy about using //, but it really does look nice Also, it only works after a newline and it pretty much just skips the whole line and moves to the next one when it reaches a //Does anybody else have any coding conventions that I should add?
How would it work? Can you give an example?
/*All these lines are commentsThe goal of this programis to clear thescreen/LCD*/dim(40Fill(0//The last line clears the screenStop
Okay, then in that case maybe I can make it so that if you do /Then, the comment will end with an End statement (to save a byte?) Would that work?
Yes, I plan to add them, but I don't know how soon and I don't know if I want to add support for long labels or just one or two byte labels like the OS.
Quote from: Xeda112358 on April 11, 2011, 08:15:56 amYes, I plan to add them, but I don't know how soon and I don't know if I want to add support for long labels or just one or two byte labels like the OS.You mean, you'll only be using jr's?
Quote from: Scout on April 11, 2011, 09:54:19 amQuote from: Xeda112358 on April 11, 2011, 08:15:56 amYes, I plan to add them, but I don't know how soon and I don't know if I want to add support for long labels or just one or two byte labels like the OS.You mean, you'll only be using jr's?Sorry, I don't know what you mean In TI-BASIC, labels can be letters or numbers and can either be 1 or 2 of them in any combination. I know in a lot of other programming languages, you can make longer labels than that. I am not sure if I want to add label support for that or not. If I keep it at a one or two byte limit, it will be faster
I don't remember saying that... Also, BatLib doesn't work that way, so it wouldn't use a jr There is a pointer stored in RAM that tells where the next byte to parse is. Actually, I use the same pointer as the BASIC parser, which is why when it reaches "Stop" the BASIC program pics up where it left off. That is also why ReCode can execute after C000h
nd I don't know if I want to add support for long labels or just one
Sorry about that