Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 5b59c48

Browse files
committed
grammar: fix map & record updates
1 parent b26e42a commit 5b59c48

File tree

5 files changed

+1632
-1612
lines changed

5 files changed

+1632
-1612
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ const OP2_RIGHT_ASSOC = ["=!", "++", "--"];
6969
//
7070
///////////////////////////////////////////////////////////////////////////////
7171
const PREC = {
72+
EXPR_MAP_UPDATE: 101,
7273
TOP_LEVEL_EXPRESSION: 100,
7374
UNARY_OP: 10,
7475
BINARY_OP: 9,
7576
MODULE_DECLARATION: 8,
7677
FUNCTION_CLAUSE: 7,
7778
FUNCTION_NAME: 5,
78-
EXPR_MAP_UPDATE: 9,
7979
PARENTHESIZED_EXPRESSION: 6,
8080
EXPR_LIST_CONS: 5,
8181
EXPRESSION: 4,

src/grammar.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@
15091509
},
15101510
"expr_map_update": {
15111511
"type": "PREC_LEFT",
1512-
"value": 9,
1512+
"value": 101,
15131513
"content": {
15141514
"type": "SEQ",
15151515
"members": [
@@ -1526,7 +1526,7 @@
15261526
},
15271527
"expr_record_access": {
15281528
"type": "PREC_LEFT",
1529-
"value": 9,
1529+
"value": 101,
15301530
"content": {
15311531
"type": "SEQ",
15321532
"members": [
@@ -1555,7 +1555,7 @@
15551555
},
15561556
"expr_record_update": {
15571557
"type": "PREC_LEFT",
1558-
"value": 9,
1558+
"value": 101,
15591559
"content": {
15601560
"type": "SEQ",
15611561
"members": [

0 commit comments

Comments
 (0)