mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 18:53:07 +00:00
parent
ba7b5daa22
commit
dea90e20e6
@ -1,6 +1,6 @@
|
|||||||

|

|
||||||
|
|
||||||
A programming language which prioritizes optimality, robustness, and
|
A programming language designed for robustness, optimality, and
|
||||||
clarity.
|
clarity.
|
||||||
|
|
||||||
[ziglang.org](http://ziglang.org)
|
[ziglang.org](http://ziglang.org)
|
||||||
|
|||||||
@ -883,7 +883,7 @@ static AstNode *ast_parse_curly_suffix_expr(ParseContext *pc, size_t *token_inde
|
|||||||
SuffixOpExpression = PrimaryExpression option(FnCallExpression | ArrayAccessExpression | FieldAccessExpression | SliceExpression)
|
SuffixOpExpression = PrimaryExpression option(FnCallExpression | ArrayAccessExpression | FieldAccessExpression | SliceExpression)
|
||||||
FnCallExpression : token(LParen) list(Expression, token(Comma)) token(RParen)
|
FnCallExpression : token(LParen) list(Expression, token(Comma)) token(RParen)
|
||||||
ArrayAccessExpression : token(LBracket) Expression token(RBracket)
|
ArrayAccessExpression : token(LBracket) Expression token(RBracket)
|
||||||
SliceExpression = "[" Expression "..." option(Expression) "]"
|
SliceExpression = "[" Expression ".." option(Expression) "]"
|
||||||
FieldAccessExpression : token(Dot) token(Symbol)
|
FieldAccessExpression : token(Dot) token(Symbol)
|
||||||
StructLiteralField : token(Dot) token(Symbol) token(Eq) Expression
|
StructLiteralField : token(Dot) token(Symbol) token(Eq) Expression
|
||||||
*/
|
*/
|
||||||
@ -929,7 +929,7 @@ static AstNode *ast_parse_suffix_op_expr(ParseContext *pc, size_t *token_index,
|
|||||||
|
|
||||||
primary_expr = node;
|
primary_expr = node;
|
||||||
} else {
|
} else {
|
||||||
ast_invalid_token_error(pc, first_token);
|
ast_invalid_token_error(pc, ellipsis_or_r_bracket);
|
||||||
}
|
}
|
||||||
} else if (first_token->id == TokenIdDot) {
|
} else if (first_token->id == TokenIdDot) {
|
||||||
*token_index += 1;
|
*token_index += 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user