Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: TiMoW1337 on November 25, 2013, 11:29:39 am

Title: [AXE] Editor [WIP]
Post by: TiMoW1337 on November 25, 2013, 11:29:39 am
Hello, I wanted to be able to create axe programs in the small font so I decided to make an editor.
My current version loads a fixed program and detokenizes it. Then you can edit it using the keyboard or some special menu's which insert tokens as strings.
When you want to save the program it searches through the program for know tokens and converts them before writing back to the program.
currently there are still a lot of TODO's:
                       - Add more tokens. (To the tokenizer and to the menu's).
                       - A program browser.
                       - Insert other programs.
                       - Copy / Paste
                       - Bookmarks
                       - Support for Axe tokens..
It's still a work in progress.
(http://i.imgur.com/GFdDgtG.gif)
Title: Re: [AXE] Editor [WIP]
Post by: ben_g on November 25, 2013, 12:21:13 pm
This looks interesting. But are the tokens case-sensitive? It might be easyer if they aren't.
Title: Re: [AXE] Editor [WIP]
Post by: TiMoW1337 on November 25, 2013, 12:22:51 pm
Currently they are case sensitive, but the plan is to make an algorithm to Lower the case.
Title: Re: [AXE] Editor [WIP]
Post by: Streetwalrus on November 25, 2013, 01:17:22 pm
Pretty easy to do actually. The caps and lowercase letters are at a fixed offset so a quick comparison + addition should do the trick. Otherwise, sounds good.
Title: Re: [AXE] Editor [WIP]
Post by: Sorunome on November 25, 2013, 01:18:53 pm
Looking interesting!
Are you planning on adding IDE-like features?
Title: Re: [AXE] Editor [WIP]
Post by: TiMoW1337 on November 25, 2013, 01:22:53 pm
Yes, I know the lower case is simple, I just need to implement it..

Which features?
Any suggestions are welcome.
Title: Re: [AXE] Editor [WIP]
Post by: Streetwalrus on November 25, 2013, 01:24:07 pm
Like build-and-run button. Axe has an API for compiling but you need to know some ASM or ask for the hex.
Title: Re: [AXE] Editor [WIP]
Post by: Sorunome on November 25, 2013, 01:25:11 pm
or also easy listing/jumping between other programs in that project, indentation, listing subroutines
Title: Re: [AXE] Editor [WIP]
Post by: Streetwalrus on November 25, 2013, 01:26:00 pm
Yeah stuff like that. Look at ZStart's editor features (these are added to the default OS editor).
Title: Re: [AXE] Editor [WIP]
Post by: Eiyeron on November 25, 2013, 01:51:06 pm
Oh and Syntax coloring!

Seriously, something like highlighting the matching End would be rad
Title: Re: [AXE] Editor [WIP]
Post by: Streetwalrus on November 25, 2013, 02:07:13 pm
Syntax highlighting is actually very possible with greyscale and text inverting..
Title: Re: [AXE] Editor [WIP]
Post by: Hayleia on November 25, 2013, 02:19:30 pm
That looks great already : :D
May I suggest you to make "usual buttons" work, I mean make menus exactly like in the TI-OS (but if I understood correctly how your program works, they would insert characters, not tokens) ? Of course, that doesn't prevent you from adding other ways to write, but I think most of us are really used to those menus.
Title: Re: [AXE] Editor [WIP]
Post by: Streetwalrus on November 25, 2013, 02:30:27 pm
Also make 2nd and Alpha work like Control/Shift/etc. on the comp.
Title: Re: [AXE] Editor [WIP]
Post by: TiMoW1337 on November 25, 2013, 02:33:57 pm
@Hayleia Later I will add another mode where you can use the original buttons, In the menu's the numbers of the tokens are the same as the TI-os numbers.
The current modes are numbers, alpha lower and alpha upper case.

For the grey scale syntax highlighting, is it possible to draw text to the backbuffer in AXE?
Title: Re: [AXE] Editor [WIP]
Post by: Streetwalrus on November 25, 2013, 02:39:36 pm
You should make a custom text routine for this. The default one is pretty slow as everything TI writes anyway. :P
Edit :
Syntax highlighting is actually very possible with greyscale and text inverting..
Lol why did I get downvoted on this ? XD
Title: Re: [AXE] Editor [WIP]
Post by: Hayleia on November 25, 2013, 02:48:14 pm
For the grey scale syntax highlighting, is it possible to draw text to the backbuffer in AXE?
There was an Axiom made by Jacobly for that. I have no idea where it is though. It was called TEXT.

edit http://ourl.ca/16517
Title: Re: [AXE] Editor [WIP]
Post by: Eiyeron on November 25, 2013, 03:04:03 pm
That Axiom is greeat, even in GrayLib (I don't understand how Runer's commands work)
Title: Re: [AXE] Editor [WIP]
Post by: ClrDraw on November 25, 2013, 07:14:37 pm
So many people are making IDE's  O.O good luck! I certainly would love one just for the small font, it's too easy to get "lost" in your code with the big font.

Quote
That Axiom is greeat, even in GrayLib (I don't understand how Runer's commands work)
Same, I checked it out earlier today and it confused me...
Title: Re: [AXE] Editor [WIP]
Post by: Eiyeron on November 26, 2013, 01:56:53 am
So many people are making IDE's  O.O good luck! I certainly would love one just for the small font, it's too easy to get "lost" in your code with the big font.

Quote
That Axiom is greeat, even in GrayLib (I don't understand how Runer's commands work)
Same, I checked it out earlier today and it confused me...

i just use the Text Axiom, and presto, that's easier to use!
Title: Re: [AXE] Editor [WIP]
Post by: ClrDraw on November 26, 2013, 10:36:04 am
Cool, can you put a link? I can't find it.
Title: Re: [AXE] Editor [WIP]
Post by: Hayleia on November 26, 2013, 11:10:25 am
Cool, can you put a link? I can't find it.
A link to that Axiom ? Just scroll to my first post on this page ;)
Title: Re: [AXE] Editor [WIP]
Post by: ClrDraw on November 26, 2013, 11:20:19 am
Quote
i just use the Text Axiom, and presto, that's easier to use!
OH awkward I thought he said he made another text axiom  :P
Title: Re: [AXE] Editor [WIP]
Post by: Runer112 on November 26, 2013, 01:59:09 pm
That Axiom is greeat, even in GrayLib (I don't understand how Runer's commands work)

So many people are making IDE's  O.O good luck! I certainly would love one just for the small font, it's too easy to get "lost" in your code with the big font.

Quote
That Axiom is greeat, even in GrayLib (I don't understand how Runer's commands work)
Same, I checked it out earlier today and it confused me...


You can post in the GrayLib thread and ask questions, you know. I promise I won't bite. :P