metacoq icon indicating copy to clipboard operation
metacoq copied to clipboard

MetaCoq Quote Definition superfluous parenthesis

Open NeuralCoder3 opened this issue 4 years ago • 0 comments

The precedence in the MetaCoq Quote and Unquote vernacular seems to be too eager:

Following code snippets are rejected due to syntax errors: MetaCoq Quote Definition test1 := @nil nat. MetaCoq Quote Definition test2 := forall (X:Type), True.

The command works with single elements or explicit parenthesis:

MetaCoq Quote Definition test3 := @nil.
MetaCoq Quote Definition test4 := (@nil nat).
MetaCoq Quote Definition test5 := (forall (X:Type), True).

I think it would be more intuitive to take everything after the := until the dot like the normal definition command.

NeuralCoder3 avatar Dec 09 '20 13:12 NeuralCoder3