Skip to content

Proposal: Centralize definition of OPs into a single file #342

Description

@Dewb

Users must read or touch many files to reason about or define a new OP. Currently that list includes the tele_ops table, the Ragel parser, the module, test, and simulator Makefiles, the help mode documentation, and the paper documentation.

We're already doing a little bit of codegen to create op_enums.h, but lots of this other material could be generated also.

The ideal would be a single file that describes all the information for an OP or small collection of related OPs, so adding or altering behavior could target a single location in the source tree. If a single file was untenable, then two separate files for definition and implementation in the same folder would also be an improvement.

In addition to making adding OPs easier, this change would also make it easier to refactor the way OPs are processed and documented, because all the implementations could be changed by changing the codegen.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions