Closed Tomivix closed 7 years ago
Waiting for your opinions @Aicedosh and @mrwasp before merging. (Old code is still present in comments, will get removed on merge)
Syntax splitting is ready (namely Engine.getPos method). You should take a look at it @Aicedosh , implementing correct syntax highlighting should be possible with that.
Not exactly I wanted.My fault, I should've specified it earlier. I'd rather it accepted a whole text (all lines) and returned a int[][] which: -on index 0 holds all orders/directives in format: [order1StartIndex, order1Length, order2StartIndex, order2Length, ...] -on index 1 all labels (formated in same manner) -on index 2 all arguments -on index 3 all invalid text (e.g. incorrectly formatted line)
I could work with it as is but if you could rework it, that'd be great.
Okay I could do that but first I have couple of questions for you @Aicedosh :
Well okay, now I know all the details and will start working on that. Two more things @Aicedosh :
Okay will proceed with this one. It may take a while though.
Splitting method updated and tested. You can start playing with it now @Aicedosh but take note that order in return array is a bit different from your suggestion (to make implementation simpler of course)
It doesn't seem to work for me. I'll play with it tomorrow. For now I'll make a pull request with line numbering in a sec
Well, what exactly do you mean by 'doesn't work'? What is the return array?
I don't have time to test that now, all I see is that the colors in code areas are weirdly off
Okay, give me more details as soon as you some have time.
So I gave it a little test and:
Okay I'm back. Will take a look at this but few things @Aicedosh :
Changed default return to {{},{},{},{}}, fixed offset and added mode control (updated your two files as well). Should be working fine for now. Also do you know what's up with @mrwasp ? I want to merge soon but he hasn't commented on any of these commits...
No news from @mrwasp, will check the update later
Okay please do. I'm thinking of merging without his approval since we already have conflicts with master.
Hi, sorry, I haven't much time these days. You can merge code, I will check and test it probably on Wednesday (when I'll come back to "normal" student life :P).
Okay, then I will be merging this branch to master. Still waiting for yours and @mrwasp opinion though.
Also bulked up some arithmetic operations, added dummy main method and a bunch of comments