diff options
| author | tslil <tslil@posteo.de> | 2026-04-27 18:07:06 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-04-27 18:20:24 +0100 |
| commit | 31de6d4406fa5663ecdbc1341521a61b86b13783 (patch) | |
| tree | 22e0a848e2e46f9a9e1ec425f2ac117053621d97 /grammar.txt | |
| parent | c5ebf74c917b94c8499fa5cd2e125b04ec7529b4 (diff) | |
flip to agda-like grammar, sets & signatures do not have dots in their fields, but applications of those do as do constructions
Diffstat (limited to 'grammar.txt')
| -rw-r--r-- | grammar.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grammar.txt b/grammar.txt index 516a248..32585bb 100644 --- a/grammar.txt +++ b/grammar.txt @@ -9,9 +9,9 @@ instance_decl = "let instance" , inst_var , "::" , signature , "=" , instanc set = record_set | variant_set | builtin_set | claimed_set | set_var | "(" , set , ")" ; record_set = "record" , "{" , [ set_field { "," , set_field } ] , "}" ; -set_field = "." , lower_ident , ":" , set ; +set_field = lower_ident , ":" , set ; variant_set = "variant" , "[" , [ variant_field { "|" , variant_field } ] , "]" ; -variant_field = lower_ident , "." , ":" , set ; +variant_field = lower_ident , ":" , set ; builtin_set = "Nat" | "Int" | "Float" | "Str" | "Bool" ; claimed_set = "set-of" , "(" , instance , ")" ; |
