Calculator Community > The Axe Parser Project

Axe Parser Comments and Questions

(1/2) > >>

alberthrocks:
This would be the topic on Axe Parser. ;)

Anyway:

1) Brief comments:
This is an amazing application. I never thought that someone could make an efficient, usable, basic to ASM compiler.
Although this really isn't basic, it still allows many features of basic to be used, and more. Of course, I still haven't been able
to compile a useful program, so I have yet to enjoy Axe Parser to its fullest... :P (Not mentioning other programs that has been
released on this forum, in which I do enjoy and am amazed by!)

2) Questions:
-a) Is it possible to create a mini MP3 player with AXE? Now, I'm not saying actual MP3, which require quite a bit of decoding, in which isn't available on the TI-8x series (as in too slow). I'm just saying music files in general that are non-MIDI. I have a great idea in using AXE to play back music, but wanted to make sure it's feasible and that it would work.
-b) Is it possible for Axe to be able to use standard basic syntax, and just compile with that? I'm not saying that I won't bother to edit the program myself, but with the current state of Axe, it's really hard to understand what has gone wrong, and what commands aren't available. There is a potential feature request about this (see, I have been reading the forums! ;) ), but I think it would be a good idea to implement. Possibly a switch to compile in a specific mode may help.

3) More comments...
I really enjoy Axe... when it compiles nicely. However, I was wondering if Axe coding can
be done on a computer, with a syntax checker for Axe.

I could design the program editor if needed, but I would definitely need to know the logic
and how Axe parses the program.

If it was done on a computer, anyone can code faster for Axe, since they would know
which line has the error, and a possible explanation of the error.

And finally, could you (Axe Parser dev Quigibo) open source the application? :) I would like to take a peek at
how it works, and such. I do some ASM coding myself, but hate it, and still stick to
BASIC for regular programming. It would be great if I have an example to refer to.
No pressure though - if you don't want to release the source code, you don't have to.

That's all! :D

meishe91:
Well I'm just changing this because it seemed Quigibo did a better explanation. If you want to delete this post, DJ or someone, you can.

Quigibo:
Hey cool, I'm glad you enjoy it :)

To answer some of your questions.  An MP3 player might be possible right now, but I think I will eventually add another sound command that reads raw data and plays something kind of like you're describing.  I don't know how you would convert the sound into hex though, nor the compression ratio.  It would suck to have to carry around 5000 extra bytes to play a 10 second clip.

Standard BASIC syntax would not be compatible with axe.  What that feature would do is allow you to integrate regular BASIC calls into the program for some commands.  It would be just as slow as regular BASIC when you do this, but it would make things like the Input command very handy.  I haven't tried real-time token parsing yet so I don't know if its possible to do what I'm thinking, but based on my reading I think it can be done.

The reason I differ the syntax and programming style slightly from regular BASIC is becasue I set it up in a way that allows for executables that are smaller, faster, and more optimized that its predecessor.  If I had used floating points for instance, it would have significantly increased program sizes and have huge slowdowns.

Scrolling to errors is something I'm for sure going to add later similar to how BASIC programs scroll to errors.  The thing is I have to learn about parsing hooks, something I know nothing about, so I'm going to have to find a lot of information about and hopefully talk to some experts.

The source code for the compiler might be open once I completely finish it, however, the source code for the assembly routines is open right now so they can be improved and optimized by the public and people learning assembly can use these routines as templates like Axe does.  I would love to make a computer compiler for axe since not only would it be able to generate the executables, it can translate directly into assembly language so it can be further optimized by hand.  Its a really huge project though.  It would honestly take about the same amount of time to write a computer compiler as has the original.

Hope I answered everything, feel free to ask if you have any more questions.  I wish you luck on your programming endeavors!

DJ Omnimaga:
Hi and welcome here!

Axe has sound command actually. It does sounds like a Commodore 64, or a NES with only one sound channel. It's kinda basic altough I am sure it could be useful.

Currently there are no computer Axe Parsers, but you can edit your code in TI-Graph Link or SourceCoder. I don't think writing a computer Axe compiler would be a good idea until Axe is finished, though, because it would slow down updates a lot.

_player1537:
Hi, welcome to omnimaga.

I was able to have chords (two notes playing at once) and 3 note chords playing and it sounded OK, you could try that.  Although it only really sounds good if you are in 15 mhz mode, in 6 mhz the sounds aren't quite right it seems.  But idk.  As for the computer program:  that sounds great, I would love that feature, especially if it works on linux :P

Navigation

[0] Message Index

[#] Next page

Go to full version