Author Topic: "INVALID TOKEN" when compiling  (Read 9815 times)

0 Members and 2 Guests are viewing this topic.

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
"INVALID TOKEN" when compiling
« 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?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: "INVALID TOKEN" when compiling
« Reply #1 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 :)




Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #2 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?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: "INVALID TOKEN" when compiling
« Reply #3 on: December 01, 2011, 11:00:28 pm »
Oh no, Axe Parser is the full compiler to convert Axe language programs into assembly.




Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #4 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
« Last Edit: December 01, 2011, 11:04:59 pm by epic7 »

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #5 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?
« Last Edit: December 01, 2011, 11:06:09 pm by Derf321 »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: "INVALID TOKEN" when compiling
« Reply #6 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 :)
« Last Edit: December 01, 2011, 11:06:33 pm by Deep Thought »




Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #7 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 ;)

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #8 on: December 01, 2011, 11:07:53 pm »
Haha I'm sure no one would be nice and convert it all for me? xD

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #9 on: December 01, 2011, 11:08:55 pm »
I'll help convert, but if it's a huge monster program... O.O

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #10 on: December 01, 2011, 11:10:30 pm »
But that wouldn't be any fun for you!
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: "INVALID TOKEN" when compiling
« Reply #11 on: December 01, 2011, 11:11:41 pm »
BasicBuilder can turn basic progs into an app...

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: "INVALID TOKEN" when compiling
« Reply #12 on: December 01, 2011, 11:12:05 pm »
...but it's still a BASIC program, just called from an app.




Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: "INVALID TOKEN" when compiling
« Reply #13 on: December 01, 2011, 11:16:12 pm »
Yeah. It all depends on what he's intending.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: "INVALID TOKEN" when compiling
« Reply #14 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.
___Axe_Parser___
Today the calculator, tomorrow the world!