Skip to content

Commit

Permalink
0.0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbz64 committed Sep 22, 2024
1 parent 95078f5 commit 5aacb87
Show file tree
Hide file tree
Showing 4 changed files with 160,052 additions and 156,745 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@usagi-coffee/tree-sitter-abl",
"version": "0.0.39",
"version": "0.0.40",
"description": "ABL grammar for tree-sitter",
"main": "bindings/node",
"scripts": {
Expand Down
277 changes: 276 additions & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
"name": "type",
"content": {
"type": "SYMBOL",
"name": "identifier"
"name": "_type"
}
}
]
Expand Down Expand Up @@ -13942,6 +13942,277 @@
}
]
},
"enum_body": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ":"
},
{
"type": "REPEAT",
"content": {
"type": "SYMBOL",
"name": "enum_definition"
}
}
]
},
"enum_member": {
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "name",
"content": {
"type": "SYMBOL",
"name": "identifier"
}
},
{
"type": "FIELD",
"name": "value",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[==]"
}
}
},
"named": false,
"value": "="
},
{
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "identifier"
},
{
"type": "SYMBOL",
"name": "number_literal"
},
{
"type": "SYMBOL",
"name": "string_literal"
}
]
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ","
},
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "identifier"
},
{
"type": "SYMBOL",
"name": "number_literal"
},
{
"type": "SYMBOL",
"name": "string_literal"
}
]
}
]
}
}
]
}
]
},
{
"type": "BLANK"
}
]
}
}
]
},
"enum_definition": {
"type": "SEQ",
"members": [
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[dD][eE][fF][iI][nN][eE]"
}
}
},
"named": false,
"value": "DEFINE"
},
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[eE][nN][uU][mM]"
}
}
},
"named": false,
"value": "ENUM"
},
{
"type": "REPEAT",
"content": {
"type": "SYMBOL",
"name": "enum_member"
}
},
{
"type": "SYMBOL",
"name": "_terminator"
}
]
},
"enum_tuning": {
"type": "CHOICE",
"members": [
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[fF][lL][aA][gG][sS]"
}
}
},
"named": false,
"value": "FLAGS"
}
]
},
"enum_statement": {
"type": "SEQ",
"members": [
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[eE][nN][uU][mM]"
}
}
},
"named": false,
"value": "ENUM"
},
{
"type": "FIELD",
"name": "name",
"content": {
"type": "SYMBOL",
"name": "identifier"
}
},
{
"type": "REPEAT",
"content": {
"type": "SYMBOL",
"name": "enum_tuning"
}
},
{
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "enum_body"
},
"named": true,
"value": "body"
},
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[eE][nN][dD]"
}
}
},
"named": false,
"value": "END"
},
{
"type": "CHOICE",
"members": [
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[eE][nN][uU][mM]"
}
}
},
"named": false,
"value": "ENUM"
},
{
"type": "BLANK"
}
]
},
{
"type": "SYMBOL",
"name": "_terminator"
}
]
},
"_expression": {
"type": "CHOICE",
"members": [
Expand Down Expand Up @@ -14202,6 +14473,10 @@
"type": "SYMBOL",
"name": "run_statement"
},
{
"type": "SYMBOL",
"name": "enum_statement"
},
{
"type": "SYMBOL",
"name": "abl_statement"
Expand Down
Loading

0 comments on commit 5aacb87

Please sign in to comment.