← Back to context

Comment by johnisgood

15 days ago

Thank you!

Is it possible to do something like:

  faultdef {
    FOO, // comment
    BAR, // another comment
    BAZ, // yadda
    // Maybe this would work, too (for docgen if available)
    QUX
  }

or something like that?

Does C3 have a way to generate documentation?

You could do

    faultdef
        FOO, // comment
        BAR, // comment
        QUX; // comment

There are third party tools to generate docs. You can also get some json output from the c3 compiler itself to base docs on