Omnimaga

Calculator Community => Major Community Projects => The Axe Parser Project => Topic started by: Derf321 on December 01, 2011, 10:57:54 pm

Title: "INVALID TOKEN" when compiling
Post by: Derf321 on December 01, 2011, 10:57:54 pm
So this is my first time using axe, I've done pretty much all you can do in BASIC. When I try to compile a BASIC program into Axe, it says "INVALID TOKEN" on Ymin/Ymax and Xmin/Xmax and Zstandard and AxesOff and pretty much anything to do with the graph. How can I compile programs that need those components?
Title: Re: "INVALID TOKEN" when compiling
Post by: Deep Toaster on December 01, 2011, 10:59:42 pm
Axe is a completely different language from TI-BASIC, with completely different commands. Read the Documentation.pdf file included in your Axe download, then check out the Commands.html page for a complete list of commands and syntaxes.

And welcome to Omnimaga, Derf321. If you have the time you can introduce yourself here (http://www.omnimaga.org/index.php?board=10.0) :)
Title: Re: "INVALID TOKEN" when compiling
Post by: Derf321 on December 01, 2011, 10:59:49 pm
Or am I completely mistaken and the Axe Parser is not to be used to transfer BASIC programs into Axe Language?
Title: Re: "INVALID TOKEN" when compiling
Post by: Deep Toaster on December 01, 2011, 11:00:28 pm
Oh no, Axe Parser is the full compiler to convert Axe language programs into assembly.
Title: Re: "INVALID TOKEN" when compiling
Post by: epic7 on December 01, 2011, 11:02:20 pm
If youve become really experienced with basic, I do reccomend using axe. It's a different language, but its not like starting over since it's kinda similar to basic.

I myself never change the graph settings :P
I believe axe automatically sets it to axes off, 0 x min, 0 y min, 64 x max, 96 y max
Title: Re: "INVALID TOKEN" when compiling
Post by: Derf321 on December 01, 2011, 11:05:30 pm
Dang... Well say I want to change 3 programs from basic to Axe, is there any programs or apps that will convert it automatically? Or do I have to go piece by piece and replace them after I learn the language?

Also, does that mean that you have to convert the source with the axe compiler each time you wish to test it?
Title: Re: "INVALID TOKEN" when compiling
Post by: Deep Toaster on December 01, 2011, 11:06:17 pm
Nope. Like with any language, you need to learn it and convert it yourself, but if you ever need help, just ask :)
Title: Re: "INVALID TOKEN" when compiling
Post by: epic7 on December 01, 2011, 11:07:27 pm
 Ive never heard of a programming language translator... But really it only took me a weekend to adjust to axe. Of course, I still haven't stopped learning it ;)
Title: Re: "INVALID TOKEN" when compiling
Post by: Derf321 on December 01, 2011, 11:07:53 pm
Haha I'm sure no one would be nice and convert it all for me? xD
Title: Re: "INVALID TOKEN" when compiling
Post by: epic7 on December 01, 2011, 11:08:55 pm
I'll help convert, but if it's a huge monster program... O.O
Title: Re: "INVALID TOKEN" when compiling
Post by: Binder News on December 01, 2011, 11:10:30 pm
But that wouldn't be any fun for you!
Title: Re: "INVALID TOKEN" when compiling
Post by: C0deH4cker on December 01, 2011, 11:11:41 pm
BasicBuilder can turn basic progs into an app...
Title: Re: "INVALID TOKEN" when compiling
Post by: Deep Toaster on December 01, 2011, 11:12:05 pm
...but it's still a BASIC program, just called from an app.
Title: Re: "INVALID TOKEN" when compiling
Post by: C0deH4cker on December 01, 2011, 11:16:12 pm
Yeah. It all depends on what he's intending.
Title: Re: "INVALID TOKEN" when compiling
Post by: Quigibo on December 02, 2011, 04:44:41 am
Is there a particular reason you want to use Axe instead of BASIC?  Converting a program doesn't make it any "better" unless you are planning to add features that are otherwise impossible to do in BASIC.  Also, the Axe language is specifically designed for games and has many common routines and functions for this purpose.  But, it leaves out a lot of other things such as high precision math and advanced string manipulation which are uncommon in games, but might be necessary in a BASIC program.

So I only recommend switching to Axe if you're specifically trying to build games.
Title: Re: "INVALID TOKEN" when compiling
Post by: parserp on December 02, 2011, 09:08:28 am
Dang... Well say I want to change 3 programs from basic to Axe, is there any programs or apps that will convert it automatically?
isn't TBO_Yeong making a basic parser?/me points to yeongs sig
EDIT:
Quote from: yeongs sig
Yo I'm making a parser that will parse TI-BASIC into some random program so it could be parsed into Axe source file so it could be compiled into Assembly program!
Title: Re: "INVALID TOKEN" when compiling
Post by: aeTIos on December 02, 2011, 10:43:14 am
That's a joke. In fact, Basic and Axe differ so much that it's not possible to convert without rewriting the whole code.
Title: Re: "INVALID TOKEN" when compiling
Post by: Derf321 on December 02, 2011, 04:18:08 pm
Ah, thank you all for your replies!
But Quigibo, isn't Axe much faster than BASIC?
I was thinking of converting 3 games I made in BASIC.
Title: Re: "INVALID TOKEN" when compiling
Post by: aeTIos on December 02, 2011, 04:47:17 pm
You probably should post them. Then we can help converting :D
and indeed, axe is much faster than basic.
Title: Re: "INVALID TOKEN" when compiling
Post by: Derf321 on December 04, 2011, 03:34:24 pm
I posted it here: http://ourl.ca/14365
Thanks for your help guys!