• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 563215 times)

0 Members and 2 Guests are viewing this topic.

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Axe Parser
« Reply #1635 on: December 30, 2010, 09:25:55 pm »
...since a stable version still isn't out yet.

Eh?  Methinks Axe is quite stable, indeed. 
Congratulations on your win, btw!
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Axe Parser
« Reply #1636 on: December 30, 2010, 11:53:58 pm »
*cough*landslide victory*cough*
If Kerm had waited til next year to upload DCS7...
we got 2 POTYs!

It's not so fine and dandy over on Ceme.
Yeah I wish there would have been place for two wins, because DCS7 really deserved one too. I even went close to vote for it (I finally voted for Unity, Axe, Ndless and NewProg) because it's so great too. I thought it would get pretty close to Axe amount of votes. Regardless, congrats QUigibo, but congrats to Kerm as well for having gotten that many votes, still, and more importantly, congrats to EVERYONE who got nominated!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Parser
« Reply #1637 on: December 31, 2010, 01:38:09 am »
Congratulations to Axe for winning the POTY!  And congrats to all the other featured programs as well ^^ All of them were exceptional programs ^^

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: Axe Parser
« Reply #1638 on: January 05, 2011, 05:08:56 pm »
Question:

Okay, so I'm almost done with the new Axiom specifications and SDK and am beginning to convert my asm mode 7 engine to an Axiom at the same time as writing the axiom interpreter.  As you might know, there will be several new Token replacements specifically for Axioms.  Originally, I was planning to add 12 tokens to replace the parametric variables X1T-Y6T, but I decided against that now because I am introducing those as 6 entirely new variables to make communication with very large Axioms more convenient.  This is to prevent passing a gajillion arguments every time you need to call an Axiom that requires global variables.

So, I need to figure out a good spot to put these tokens.  I would prefer a single menu where I can use every or almost every single token on that menu.  I was thinking about the [2nd] [DISTR] menu but I could use the window tokens, zoom tokens, or another place instead.  Anyone have a preference?

Also, if you can think of a some generic token names that would be useful to you, but not too specific, feel free to throw them out there.  Also, all new tokens will have a left parenthesis attached, but you can close it like this() to use it as a no-argument token.  Some ideas I am considering so far are:

Start()
Next()
Up()
Down()
Left()
Right()
Render()
DrawL()
DrawR()
DrawS()
Print()


And don't forget, there are still all the TI tokens in addition to these so if you were writing an 8.8 sine routine for instance you could use sin-1() or sinh().
« Last Edit: January 05, 2011, 05:13:14 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Axe Parser
« Reply #1639 on: January 05, 2011, 05:18:41 pm »
How about Run(, to allow for the possibility of Axe based languages?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Ashbad

  • Guest
Re: Axe Parser
« Reply #1640 on: January 05, 2011, 05:19:30 pm »
Qwerty, I'm sure your idea is a good one, but I don't understand what you mean by it.  Can you explain?  I'm a bit slow :P

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Axe Parser
« Reply #1641 on: January 05, 2011, 05:22:58 pm »
Run( would copy pgrmNAME to a location in RAM if archived then return the pointer. If it is in RAM, then it would just return the pointer. That way, you could compile/interpret things with an Axe based Axiom.
* Qwerty.55 is confusing himself.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Axe Parser
« Reply #1642 on: January 05, 2011, 05:25:27 pm »
Hmm, that reminds me... can file objects read from variables in RAM, or only from archive?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Axe Parser
« Reply #1643 on: January 05, 2011, 05:57:41 pm »
@calc84maniac: I dunno.  I think I tried unsuccessfully before, I'm using the LoadDEIndPaged bcall so I'm not sure if that's able to read from ram.  However, the file pointers are now dereferenceable so you are able to change or lookup the page number and pointer at any time.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Axe Parser
« Reply #1644 on: January 05, 2011, 06:20:32 pm »
Slightly off topic, but Quigibo, do you know of a sprite xor routine exactly like the one in axe, but that does 4x4 sprites?
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 DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Axe Parser
« Reply #1645 on: January 06, 2011, 02:02:19 am »
I can't tell about token names for now since I'm kinda tired but using the ones in an entire menu would be a good idea if it's all for the same thing, otherwise with all the renamed tokens it will get hard to find them in the CATALOG since they're not sorted alphabetically.

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: Axe Parser
« Reply #1646 on: January 09, 2011, 03:32:04 pm »
So the new Axiom SDK is out.  If anyone wants to attempt one, you will definitely get to try it out on 1.0.0 before the official release.  The inc file is not totally finished because I haven't added the new token equates yet, but I'll get to that soon.  Let me know if you have any questions about the Axiom format, some things about it might be confusing.  One thing I'll mention is what the "Stored to" command modifier is.  EXP->DispGraph is a one argument version of this and EXP->float{EXP} is a 2 argument version.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Parser
« Reply #1647 on: January 09, 2011, 05:35:46 pm »
I can't tell about token names for now since I'm kinda tired but using the ones in an entire menu would be a good idea if it's all for the same thing, otherwise with all the renamed tokens it will get hard to find them in the CATALOG since they're not sorted alphabetically.
Yes, that would be great.  Is this possible? ;D

Offline FloppusMaximus

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +57/-5
    • View Profile
Re: Axe Parser
« Reply #1648 on: January 09, 2011, 06:49:36 pm »
I can't tell about token names for now since I'm kinda tired but using the ones in an entire menu would be a good idea if it's all for the same thing, otherwise with all the renamed tokens it will get hard to find them in the CATALOG since they're not sorted alphabetically.
Yes, that would be great.  Is this possible? ;D
Yes, it is, but I'm not sure whether or how well it's been documented.  What you want is the catalog hook(s).  One or the other of them - I think it's the second - is the hook that language localization apps use to reorder the catalog.  It's been years since I looked at that stuff, though.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Axe Parser
« Reply #1649 on: January 10, 2011, 01:55:14 am »
I'm glad to see the fixed version of Axe out. Hopefully no new bug arises from the change.