Amaan Qureshi
34f4c7e751
fix: allow preproc calls in enumerator list items
2 лет назад
Amaan Qureshi
d908b47d74
chore: generate
2 лет назад
DennySun2100
25371f9448
feat: add Microsoft's SEH extension
Co-authored-by: Denny Sun <dennys@microsoft.com>
2 лет назад
Amaan Qureshi
4d991237e2
chore: generate
2 лет назад
Amaan Qureshi
b4cdc500b1
chore: generate
2 лет назад
Amaan Qureshi
43a147ad77
chore: generate
3 лет назад
Amaan Qureshi
349f3bb3f4
chore: generate & update test
3 лет назад
Amaan Qureshi
84c6744e0e
chore: generate
3 лет назад
Amaan Qureshi
0df358adfb
chore: generate
3 лет назад
Amaan Qureshi
34db9e4b29
fix: rework true top-level items to disallow binary expressions
This resolves conflicts with declarations that can be interpreted as binary_expressions
3 лет назад
Amaan Qureshi
c75868f8b5
feat: C23
3 лет назад
Amaan Qureshi
bb4ab38847
feat: allow type_qualifiers after typedef specifier, alias char content
3 лет назад
antoinemadec
7f678a26bb
Add else_clause
3 лет назад
TJ DeVries
6b85e8478b
fix: Add compound statement to call expression
5 лет назад
Christian Clason
6adee19458
feat: allow identifiers in string concatenations ( #145 )
* feat: allow identifiers in string concatenations
Resolves errors in strings of the form:
("failed in line %" PRIdLINENR)
---------
Co-authored-by: Lewis Russell <lewis6991@gmail.com>
3 лет назад
Benjamin Brownlee
693d298099
feat: add gnu inline asm syntax ( #140 )
3 лет назад
Amaan Qureshi
b191f46285
chore: generate
3 лет назад
Jason Brown
e1359a0a54
Adding support for offsetof
3 лет назад
Amaan Qureshi
ec5e4099ce
chore: generate
3 лет назад
Amaan Qureshi
f0db9dfc82
chore: generate
3 лет назад
Ismail A Bella
94bc261b1a
fix: allow multiple expressions inside for_statement condition
4 лет назад
John Drouhard
179b70c6be
Attributes: simplify attributed_statement by making it a valid type of non-case statement
This also lets it bind to _any_ statement, which is necessary for some
c++ attributes that can attach to the statement in if, while, and
do/while statements.
4 лет назад
Ben Dunkin
517bf92b2c
add the body label to for loops to make it the same as other loops ( #110 )
4 лет назад
John Drouhard
f71e80b9f2
Extract "..." into a named node called variadic_parameter. Fixes #73
4 лет назад
jdrouhard
9bee34500c
Support attribute statements under case statements ( #83 )
4 лет назад
John Drouhard
0b714a5134
rename attribute_definition to attribute_declaration
4 лет назад
jdrouhard
8fc135a72b
Add support for C23 attributes ( #81 )
* Add support for C23 attributes
https://en.cppreference.com/w/c/language/attributes
* Use wrapper for statements with attributes to reduce state machine size
* Missed a couple _declarators that needed attributes directly after
* Use annotated_declarator for declarators that have attributes immediately following them
* Give field and type declarators the same attribute treatment
4 лет назад
berchn
008008e30a
Add operator field to field_expression ( #69 )
5 лет назад
berchn
25fb87ce98
Add operation field to assignment_expression ( #68 )
5 лет назад
Max Brunsfeld
8d4631b673
⬆️ tree-sitter-cli to 0.18
5 лет назад
Mathieu Nayrolles
88592f162e
Add support for Microsoft-specific modifiers ( #40 )
* Add support for Microsoft-specific modifiers
Microsoft-specific modifiers are keywords can be used to modify declarators to form derived types.
The specification for the modifiers themselves is here:
https://docs.microsoft.com/en-us/cpp/cpp/microsoft-specific-modifiers?view=vs-2019
* 0.16.1
6 лет назад
Max Brunsfeld
b4497e0bba
⬆️ tree-sitter-cli
6 лет назад
calixteman
c455818961
#include can be followed by a macro name or a macro call ( #38 )
* #include can be followed by a macro name or a macro call
* In preproc_include, use preproc_call_expression
6 лет назад
calixteman
362c031880
Parse expressions in preprocessor #if statement ( #29 )
* Parse expressions in preprocessor #if statement
* Make preproc_expression look like a normal expression
* Hide the wrapper rules
* Alias the rulres to match their corresponding expression rule
* Handle line continuations as extra tokens
6 лет назад
calixteman
2ed529f075
Add u|U|u8 string|char support ( #36 )
6 лет назад
Max Brunsfeld
3458bfc9a5
⬆️ tree-sitter
6 лет назад
Max Brunsfeld
627806ec6a
Allow case statements separate from switch statements
Fixes #32
6 лет назад
Max Brunsfeld
916be99704
Allow comma operator in return statement
Fixes #31
6 лет назад
calixteman
c578638af2
Fix multi-statements in for initializer and update parts ( #27 )
* Fix multi-statements in for initializer and update parts
* Finally the bug was only in the initializer part
7 лет назад
calixteman
c8061429cc
Fix error with ++L (consequence of support for L strings) ( #26 )
* Fix error with ++L (consequence of support for L strings)
* Update to tree-sitter 0.15.5
7 лет назад
Max Brunsfeld
0bc1adf0c2
Tweak fields
7 лет назад
Max Brunsfeld
c3965938cc
Add node fields, update tree-sitter-cli
7 лет назад
calixteman
ff4fc1c785
Handle L-strings and L-chars ( #25 )
7 лет назад
Max Brunsfeld
4c8cc481d9
Update tree-sitter-cli to 0.15.3
7 лет назад