Add required array element constraints

This commit is contained in:
2026-08-11 17:24:04 +09:00
parent 5a05da6fe4
commit 46b2b3b1b6
35 changed files with 6328 additions and 5042 deletions
+3
View File
@@ -71,6 +71,7 @@ PrimaryExpression {
Identifier |
ComparisonConstraint |
Object |
ArrayConstraint |
Array |
LetExpression |
FunctionExpression |
@@ -88,6 +89,7 @@ FieldDefinition { FieldPath Equal Expression }
FieldPath { Identifier !fieldPath (Dot Identifier)* }
Array { LBracket (Expression (Comma Expression)* Comma?)? RBracket }
ArrayConstraint { LBracket Ellipsis Expression Comma? RBracket }
LetExpression { Let FieldDefinitionList In Expression }
FieldDefinitionList { (FieldDefinition Semicolon)* }
@@ -143,6 +145,7 @@ ImportExpression { Import String }
Semicolon { ";" }
Comma { "," }
Dot { "." }
Ellipsis { "..." }
Colon { ":" }
Equal { "=" }
EqualEqual { "==" }