• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 553178 times)

0 Members and 4 Guests are viewing this topic.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Parser
« Reply #1935 on: July 25, 2011, 01:17:11 pm »
Nice to know. Since all of the most devastating bugs seems to have been fixed, I think I'll send 1.0.2 and try it out a bit. :)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

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 #1936 on: July 25, 2011, 02:47:59 pm »
Haha! Just realized something... There is no reason for me to require a comma. In the next version, I will make it so that you can do a simple "A?B?C" to 'and' conditionals and "A??B??C" to 'or' them.  That should be more intuitive.  So now there really will be boolean operators!
« Last Edit: July 25, 2011, 02:48:29 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Parser
« Reply #1937 on: July 25, 2011, 02:53:41 pm »
Also, a bug regarding short-circuiting a chain of ORs (or NORs). Omitting parentheses around the inline if statement chain somehow results in the first line inside the If statement being parsed as if it's at the end of the If statement line. For instance, this:

Code: [Select]
If A?,B
Pxl-On(A,B)
0→A
End

Is parsed like this:

Code: [Select]
If A?,BPxl-On(A,B)
0→A
End
« Last Edit: July 25, 2011, 02:55:16 pm by Runer112 »

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 #1938 on: August 20, 2011, 06:49:22 am »
Cool, so I finished the short circuit operators and fixed the bugs involved with them hopefully.  If any of you are familiar with C, these are the "&&" and "||" operators.

Its really easy to use.  Instead of doing:
Code: [Select]
If A=3 and (B=6) and (C=7)
You can do:
Code: [Select]
If A=3 ? B=6 ? C=7
Likewise, "or" would be replaced with "??".  Those spaces I added aren't needed, but you might want to add them if it becomes hard to read.  I'm not sure if this yields a size optimization, it probably depends on the expressions, but it definitely has a speed optimization because it will skip checking the rest of the conditions as soon as one is found that allows the skip to occur (called short circuit evaluation).
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axe Parser
« Reply #1939 on: August 27, 2011, 03:59:07 pm »
Have the major bugs in 1.0.X been fixed in 1.0.3?

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Axe Parser
« Reply #1940 on: August 27, 2011, 04:33:23 pm »
It seems like it.  I've only gotten bad flash maybe once and after running thepenguin's archive fixer haven't had any since ;D
Vy'o'us pleorsdti thl'e gjaemue

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 #1941 on: August 27, 2011, 10:08:05 pm »
Yeah, the serious bugs were fixed in 1.0.2 actually.  The "major" bug in 1.0.2 was just a language thing for pointers, nothing serious.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Axe Parser
« Reply #1942 on: August 27, 2011, 10:56:00 pm »
So for all intents and purposes 1.0.3 is stable? That's good news, 1.0.1 made me drool. A lot. It was messy. And my friend laughed at me.

But it was worth it! :D

Offline GreenFreak

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 191
  • Rating: +16/-1
    • View Profile
Re: Axe Parser
« Reply #1943 on: August 28, 2011, 05:06:44 am »
willrandship, if I klick on the link in your signature, my avast! antivirus says, that this site wants to install malware on my pc X.x

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Axe Parser
« Reply #1944 on: August 28, 2011, 09:36:54 am »
willrandship, if I klick on the link in your signature, my avast! antivirus says, that this site wants to install malware on my pc X.x
Yeah, that happens for a m:oment, then disappear.

Ashbad

  • Guest
Re: Axe Parser
« Reply #1945 on: August 28, 2011, 09:51:38 am »
willrandship, if I klick on the link in your signature, my avast! antivirus says, that this site wants to install malware on my pc X.x
Yeah, that happens for a m:oment, then disappear.

\o/ yay totally random off topic stuff

On a side note I didn't get any malware warning

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: Axe Parser
« Reply #1946 on: August 28, 2011, 06:23:14 pm »
...so you got the malware? :P

Baaack on topic, yep, from what I can tell from the bug reports thread, 1.0.3 is pretty stable. I should upgrade sometime.




Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Axe Parser
« Reply #1947 on: September 01, 2011, 01:34:16 am »
There shouldn't be any malware in that link....it's a simple url redirection service.

But yes, as far as I can tell with minimal testing of my own, 1.0.3 is running well, with any crashing being my fault, not axe's :P

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Axe Parser
« Reply #1948 on: September 01, 2011, 01:06:35 pm »
Out of curiosity, about the dereferenced labels: Since (LFOO)() is the same as using FOO(), can you put constant pointers into the first parentheses to call shell and TI-OS subroutines (like (E0000)() to reset your RAM)? Because if so, that will be REALLY cool! :)
« Last Edit: September 01, 2011, 01:07:32 pm by Compynerd255 »
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Ashbad

  • Guest
Re: Axe Parser
« Reply #1949 on: September 01, 2011, 01:33:25 pm »
Out of curiosity, about the dereferenced labels: Since (LFOO)() is the same as using FOO(), can you put constant pointers into the first parentheses to call shell and TI-OS subroutines (like (E0000)() to reset your RAM)? Because if so, that will be REALLY cool! :)

yes.  However, when you load arguments, you aren't loading them the way that the OS routines want them as (they usually want them in registers, you'll be loading them into the stack and/or HL solely) so to load arguments for them you'll have to inline some assembly.  Unless of course the routine doesn't expect any arguments, or just one in HL :P