tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Syntax: a constructor's where stops at a leading comma

A constructor's `where` ends at the end of its line, but a comma starting
the next line was eaten as one more constraint: in

  Lit(a) -> Expr<a> where Show<a>
, Zero -> Expr<Int>

`Zero -> ...` parsed as a constraint. A comma that starts a line now
separates constructors, like one that ends a line already did. This is
the layout the formatter is about to print (ADR 0059 rev. 1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · d21ae05d2010f70890284351157e48964b2ac9ec

Parents 948e694

4 fichiers modifiés, 70 ajouts, 5 suppressions

Mcrates/louise_syntax/src/grammar/mod.rs+3−2
Mcrates/louise_syntax/tests/data/ok/gadts.lse+5−0
Mcrates/louise_syntax/tests/snapshots/parser__ok_corpus_parses_cleanly@gadts.lse.snap+61−2