Skip to content

Tutorial declarations for all export-format cases #4

Closed as not planned

Description

@Julian

I'm in the midst of porting a parser from the old line format to NDJSON, and the tutorial is pretty useful for doing so, but it doesn't fully cover the export format. Here's a list of what's currently not emitted by any declaration in it:

    LitStr,
    LitNat,
    Proj,
    Let,
    RecRule,
    Recursor,
    UniverseMax,
    Constructor,
    InductiveSkeleton,
    Opaque,
    Axiom,
    Quot,

(Also not present are binder types other than default.)

Is a PR adding declarations which force emitting each of these as well welcome for the tutorial file, or would you prefer a separate file which has an explicit goal to exercise all of the export format rather than be illustrative of the type checker features?

Relatedly is these tests might be written that way intending that they emit max / imax lines, but they don't, they just end up being:

{"i":0,"sort":{"u":1}}
{"i":1,"sort":{"u":0}}

Activity

  1. nomeata commented on Jan 25, 2026

    @nomeata
    Collaborator

    I'd like the tutorial file to focus on the sequence of steps needed to develop a kernel.

    But I'd welcome a parser-test that exercises all the parser things you care about, ideally all in one file.

  2. Julian commented on Feb 1, 2026

    @Julian
    ContributorAuthor

    I made due here using Init as a forcing function for the rest of the tests. I'm unlikely to get back to this rather than working on getting the actual type checker logic right so going to close I think.

  3. added a commit that references this issue on Nov 25, 2026
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