Skip to content

Commit

Permalink
chore: generate
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Aug 9, 2023
1 parent b9f85ed commit 85bd13e
Show file tree
Hide file tree
Showing 4 changed files with 96,954 additions and 77,138 deletions.
210 changes: 204 additions & 6 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,18 @@
"type_definition": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "__extension__"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "typedef"
Expand Down Expand Up @@ -2061,6 +2073,13 @@
}
]
},
{
"type": "REPEAT",
"content": {
"type": "SYMBOL",
"name": "attribute_specifier"
}
},
{
"type": "STRING",
"value": ";"
Expand Down Expand Up @@ -2925,7 +2944,7 @@
}
},
"function_declarator": {
"type": "PREC",
"type": "PREC_RIGHT",
"value": 1,
"content": {
"type": "SEQ",
Expand All @@ -2946,6 +2965,18 @@
"name": "parameter_list"
}
},
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "gnu_asm_expression"
},
{
"type": "BLANK"
}
]
},
{
"type": "REPEAT",
"content": {
Expand Down Expand Up @@ -3352,6 +3383,18 @@
"type": "STRING",
"value": "inline"
},
{
"type": "STRING",
"value": "__inline"
},
{
"type": "STRING",
"value": "__inline__"
},
{
"type": "STRING",
"value": "__forceinline"
},
{
"type": "STRING",
"value": "thread_local"
Expand Down Expand Up @@ -3385,6 +3428,10 @@
"type": "STRING",
"value": "__restrict__"
},
{
"type": "STRING",
"value": "__extension__"
},
{
"type": "STRING",
"value": "_Atomic"
Expand Down Expand Up @@ -4902,10 +4949,18 @@
"type": "SYMBOL",
"name": "sizeof_expression"
},
{
"type": "SYMBOL",
"name": "alignof_expression"
},
{
"type": "SYMBOL",
"name": "offsetof_expression"
},
{
"type": "SYMBOL",
"name": "builtin_va_arg"
},
{
"type": "SYMBOL",
"name": "generic_expression"
Expand Down Expand Up @@ -6025,6 +6080,61 @@
]
}
},
"alignof_expression": {
"type": "PREC",
"value": 8,
"content": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "__alignof__"
},
{
"type": "STRING",
"value": "__alignof"
},
{
"type": "STRING",
"value": "_alignof"
},
{
"type": "STRING",
"value": "alignof"
},
{
"type": "STRING",
"value": "_Alignof"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "("
},
{
"type": "FIELD",
"name": "type",
"content": {
"type": "SYMBOL",
"name": "type_descriptor"
}
},
{
"type": "STRING",
"value": ")"
}
]
}
]
}
},
"offsetof_expression": {
"type": "PREC",
"value": 9,
Expand Down Expand Up @@ -6071,6 +6181,47 @@
]
}
},
"builtin_va_arg": {
"type": "PREC",
"value": 15,
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "__builtin_va_arg"
},
{
"type": "STRING",
"value": "("
},
{
"type": "FIELD",
"name": "argument",
"content": {
"type": "SYMBOL",
"name": "_expression"
}
},
{
"type": "STRING",
"value": ","
},
{
"type": "FIELD",
"name": "type",
"content": {
"type": "SYMBOL",
"name": "type_descriptor"
}
},
{
"type": "STRING",
"value": ")"
}
]
}
},
"generic_expression": {
"type": "PREC",
"value": 15,
Expand Down Expand Up @@ -6692,8 +6843,25 @@
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_expression"
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "__extension__"
},
{
"type": "BLANK"
}
]
},
{
"type": "SYMBOL",
"name": "_expression"
}
]
},
{
"type": "SYMBOL",
Expand All @@ -6714,8 +6882,25 @@
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_expression"
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "__extension__"
},
{
"type": "BLANK"
}
]
},
{
"type": "SYMBOL",
"name": "_expression"
}
]
},
{
"type": "SYMBOL",
Expand Down Expand Up @@ -7427,12 +7612,25 @@
"concatenated_string": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "identifier"
},
{
"type": "SYMBOL",
"name": "string_literal"
}
]
},
{
"type": "SYMBOL",
"name": "string_literal"
},
{
"type": "REPEAT1",
"type": "REPEAT",
"content": {
"type": "CHOICE",
"members": [
Expand Down
Loading

0 comments on commit 85bd13e

Please sign in to comment.