0 Members and 5 Guests are viewing this topic.
HoMM: [==--------] Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :PtiDE: [----------] Explored and understood the main part of the code: just started writing a Tokenizer.
The InsertMen and DeleteMem commands I was considering to add at one time, but then I realized that you can do basically the exact same thing by creating an appvar, string, program, etc. in ram and then delete it when you're done to get a quick temporary variable without any extra syntax.
That sounds like it could work. Though it wouldn't necessarily be the next End, since If's don't count, not being looping constructs.Also, it would be nice to be able to specify how far out to go, possibly like "Goto End(3)" to break out of three loops. (This is constant, of course. "Goto End(X)" won't compile, just like "getKey(X)" won't.)What token would work after Goto for a continue, though, since there's more than one looping construct?
An indexed Connected would be nice, and the name could be changed. As for "Goto End" taking If's into account, I guess that would be okay if it makes things easier for the compiler. I don't know how it works internally either
...:While U>4:U-1→U:While U>4...