Improve command classification #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "Dr-Carlos/fxos:classification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello!
Given that there hadn't been much activity on fxos in the past week (which is fine, there are plenty of other projects to work on), I thought I would try and implement issue #3. I have:
dtl
to.dt
is
toisc
andsl
tois
sa
andss
to createma
af4
andafh
tos4
andsh
vct
in favour ofvc
and.
ev
intoe vspace=
Note that
ma
does not support expressions - only addresses. I couldn't figure out how to do this, but I'm sure that you can do it (or add it to the parser if it isn't possible yet).Let me know if there are any command names or descriptions that you want me to change.
If you want to test it out, I changed the commands to use the updated names in my fxos files and uploaded them to my fork of fxdoc.
Wow, thanks! This is really nice. Getting small stuff done is always more time for important features. :)
I have a single issue with your diff, which is that your editor changed a lot of the style, indent, etc. which looks really inconsistent now. This is annoying, but not as much as constantly having to worry about it, so I set up a clang-format on the
master
branch to automate it.You can force the formatting without redoing your full PR like this:
This would leave you with a couple conflicts where you essentially just need to remove the old commands. There are 3 files that stand out due to
clang-format off
blocks, for these please grab the unformatted block from themaster
branch.Apart from that this seems to be all clean! I will update the fxdoc repository just after merging this so we're still up-to-date. Thanks for your time, and sorry for not setting up formatting before.
aea85260fb
tod943ba12c3
I'm glad you like it. I have fixed up the formatting and merged the branches. Hopefully this will avoid any code style issues in the future!
Perfect! This diff is pristine now, and you really implemented everything. I don't see any more commands that need changing.
I merged on the command-line, though apparently not in the exact way that Gitea expected. Oops. ^^"
I have only renamed
ma
intoms
(metadata symbol) because I intend to have other kinds of metadata, specifically types (with an associatedmt
command).You can parse expressions, but currently the
Symbol
struct only supports fixed addresses. Pointing to symbolic expressions would be bothersome.If you just want to allow command-time computation for the address, you could do like
e
and useparser.expr()
. But this would resolve syscalls, so you'd need to watch the lookahead, something like (not tested):This is possible because composite expressions must start with
(
.Thanks! I tried to do this originally, but didn't realise I could lookahead without popping the token. I have fixed this and pushed it.
Excellent, that new interface is going to work much better.