Skip to content

Commit

Permalink
update syntax
Browse files Browse the repository at this point in the history
liweijian committed Dec 21, 2023
1 parent 19985cc commit d652384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parser.mly
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ open Parser_util

%token COMMA ","
%token MINUS "-"
%token QUESTION "?"

%token <string>DOT_IDENT
%token <int>DOT_INT
@@ -287,6 +288,7 @@ simple_expr:
| "(" expr ":" type_ ")"
{}
| "[" es = list_commas(expr) "]" {}
| simple_expr "?" {}

%inline label:
name = LIDENT {}

0 comments on commit d652384

Please sign in to comment.