0 Members and 3 Guests are viewing this topic.
If you're asking if you can make your own block statements with axioms, that will not be possible with the current axe syntax (using "End"), but I'm sure you could invent your own syntax for it with some hackish code by making a separate ending block routine. Although debugging would be a little difficult since they would not be detected as block errors if there were one.
Perhaps Axe itself can search for Axioms on the calculator, and just add all of their keywords, without bothering to see if it's used in the program?
Unfortunately, due to the way the token hook works, it would be virtually impossible to add custom token replacements. In order for that to work, every token you type in the editor would have to scan the entire program for the Axiom() keyword, look in that file, compare against all the replaceable tokens, and then copy the new value. This would be way too much of a delay and scrolling would be really sluggish.
My compromise is to provide a bunch of generically sounding token names that are unused by the axe language itself in hopes that they will fit into the axioms. I will have a poll/thread for suggestions next week when I prepare for the next update, but to give you some examples I have now: Draw1() Draw2() Draw3() Setup() Move() Load() Save() New() Del() and of course in addition to these you have all the unused OS tokens.