Giter Site home page Giter Site logo

Statement syntax proposal about armips HOT 8 CLOSED

kingcom avatar kingcom commented on August 14, 2024
Statement syntax proposal

from armips.

Comments (8)

Kingcom avatar Kingcom commented on August 14, 2024

Hm, that makes sense. The other intended purpose was to allow multiple opcodes/directives on a single line. for example for longer nop chains that would otherwise blow up the number of lines quite a bit. Can you think of a decent way to handle these too?

from armips.

sp1187 avatar sp1187 commented on August 14, 2024

In Python you can use ; to put multiple statements in a single line. That character is used for comments here, so you can't use that one of course, but something similar could be used. GAS seems to use @, ! or $ for some architectures.

from armips.

Kingcom avatar Kingcom commented on August 14, 2024

Yeah, but when I thought about it I couldn't think of something that looked nice. The C expression syntax takes care of almost all possible symbols unfortunately.

from armips.

sp1187 avatar sp1187 commented on August 14, 2024

One option may be adding a .repeat/.endrepeat directive or something similar repeating a sequence N times.

EDIT: Forgot that @ is used for local labels...

from armips.

sp1187 avatar sp1187 commented on August 14, 2024

The most viable character I can think of for a statement separator is backtick (```).
A bit ugly, but some architectures in GAS seems to actually use the backtick for this purpose, and I guess it won't be used all that often anyway, so I think it would be feasible.

from armips.

sp1187 avatar sp1187 commented on August 14, 2024

Do you have any plans of implementing this currently? I would have tried myself but I'm afraid I don't quite understand the parser enough yet.

from armips.

Kingcom avatar Kingcom commented on August 14, 2024

I think I have a decent idea how it could be implemented, but I'm afraid I don't really have the time to do the proper testing at the moment. If you want though, I could talk to you about it and the parser, like somewhere in IRC.

from armips.

sp1187 avatar sp1187 commented on August 14, 2024

Sounds interesting. I'm usually available at #n64dev in EFnet.

from armips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.