Closed nyanpasu64 closed 5 years ago
Yes. The rc2qt experiment did still require some manual manipulation of the input file. I never quite got it perfect. I also thought I had committed a makefile that made the parser properly...I'll look around for that but it may be lost to the ethers.
I have committed the makefile for rc2qt. https://github.com/christopherpow/nesicide/commit/252cdc49c937200b84590f998e9e4c484818f6b0
""
to \"
conversion? Do you know antlr better than me? I'm a bit busy unfortunately, but https://tomassetti.me/antlr-mega-tutorial/ looks interesting.I committed a fix for the "" issue and updated rc2qt to python3.
I don't have the j0CC rc file locally to test.
I found the j0CC rc file. Tested it. Looks like it works properly now. Let me know.
I also cleaned up the parsing errors.
Looks like it works properly now. Let me know.
Your new script on Python 3 produces a nearly empty stdout (110 lines according to less) on master, missing most of the content?
I guess I forgot to look at the actual output on my last commit. :| Fixed.
I observed that HertzDevil (0cc) had a tendency to "break master for dozens of commite over time" (including compilation errors on debug builds due to no CI). This messy history made bisecting basically impossible. I'd assume your "fix appveyor" commands create a dead zone which doesn't fail to build, but wastes time if I'm bisecting code changes.
I would have switched antlr grammar in one commit and switched Python versions in another, then rebased or merged (persobally from a self-PR), for ease of bisecting. With both combined, I couldn't tell which change the bug came from. Do you agree?
Of course, I agree. If you're intent is to stick around and help for a while I will make an effort to be more careful with my commits. But please understand I've been mainly alone on this for quite a portion of its development time. I allow myself to be a bit sloppy, which isn't nice to others, but doesn't matter if "others" is an empty set. :) I have moved appveyor to its own branch.
My plan is to port j0cc to qt using nesicide, then use that as the base for my own tracker with drastic changes. It's your call, but for personal reasons and ease of bisecting/changelog, i try to avoid mistakes reaching master, even on my own repos.
I think the fixes are not in master yet, unless you altered your commit without changing commit date or author date, then force-pushed.
also I got into some events elsewhere (someone hassling and verbally attacking me to make me write a NSF driver instead of first implementing the tracker) which may be reducing my enthusiasm to continue this project further. I'll decide this weekend when I have free time.
Master seems to work now, thanks. (Would you prefer if I stopped giving git suggestions? If you're OK, I think master's DAG looks messy, and would look better if you did rebasing or squash-merge, for example via Github PR, instead of merge commits.)
I'm an old man of habits. That has the unfortunate side effect of making me be a bit hard to work with. Sorry. I will try to work on branches and merge only when completely working. I appreciate the suggestions, but hope you understand it taking me some time to clean up my act.
Wait, I think you're mistakenly hex-encoding some strings. As a side effect of the Python 3 switch, you commented out but didn't fix some code. (Maybe it wasn't worth switching.)
I'll open a PR shortly.
The rc2qt was an experiment, really. I hadn't put much effort into pulling it into the build process because I hadn't a need for it. I took one look at 0CC and almost fainted with all the diffs I'd have to figure out. rc2qt came from an idea to automate the conversion process I'd had for some time but hadn't acted on.
Nice catch on the hexify. I thought there might be some missed gotcha's with python transition.
On Fri, Jun 21, 2019 at 10:44 PM jimbo1qaz notifications@github.com wrote:
Wait, I think you're mistakenly hex-encoding some strings. As a side effect of the Python 3 switch, you commented out but didn't fix some code. (Maybe it wasn't worth switching.)
[image: image] https://user-images.githubusercontent.com/913957/59959006-3185bf00-9464-11e9-8c87-342e9aea7645.png
I'll open a PR shortly.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/christopherpow/nesicide/issues/40?email_source=notifications&email_token=AAMQR4BZ4CMXSG6WXT2YKYTP3WNZBA5CNFSM4HY5B5TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJ7K3Q#issuecomment-504624494, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMQR4GRHR442QZDWXHSWGLP3WNZBANCNFSM4HY5B5TA .
Probably blocks #29.
I get errors when parsing stock FT's .rc file. However the generated file is identical to Git master. https://gist.github.com/jimbo1qaz/377114754cbc8b0c55a8794f060cc297#file-2-rc2qt-errors-txt
0CC...
https://gist.github.com/jimbo1qaz/377114754cbc8b0c55a8794f060cc297#file-2-rc2qt-errors-txt
Most of the errors correspond to vanilla FT. I did notice that your script doesn't understand
"asdf""zxcv"
is an escape forasdf"zxcv
. This escape syntax is not used in vanilla FT.String : '"' (~[\r\n"] | '""')* '"' ;
fixes lexing, but quotes are still doubled in the output C++, instead of being transformed into\"