Skip to content

Prose inside a definition #102

@greedy

Description

@greedy

I'd like to be able to write prose inside of record and inductive definitions for the purposes of discussing individual fields or constructors. When I tried to do this, I got an error because alectryon submitted each snippet between the (*| |*) to coq separately as if it were a complete sentence.

Processing

Inductive foo :=
(*| For `foo`, `bar`, means ... |*)
bar : nat -> foo.

with alectryon yields

ex.v:1: (ERROR/3) Coq raised an exception:
  > Syntax error: '.' expected after [gallina] (in [vernac_aux]).
The offending chunk is delimited by >>>…<<< below:
  > Inductive foo :=>>><<<
Results past this point may be unreliable.
ex.v:1: (ERROR/3) Coq raised an exception:
  > Syntax error: illegal begin of vernac.
The offending chunk is delimited by >>>…<<< below:
  > >>>bar<<< : nat -> foo.
Results past this point may be unreliable.

I tried to see what it would take to fix this, but I started to get the impression that content between prose are complete Coq sentences might be a core assumption of alectryon's processing model.

This is also mentioned in #75 as a feature of coqdoc that is not supported by alectryon's coqdoc frontend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions