Amaan Qureshi
618018069b
Merge pull request #72 from tjdevries/tjdevries/add_compound_statement_to_call_expression
fix: add compound statement to call expression
3 anos atrás
Amaan Qureshi
a726cb95ee
chore: add a test
3 anos atrás
TJ DeVries
6b85e8478b
fix: Add compound statement to call expression
5 anos atrás
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 anos atrás
Benjamin Brownlee
693d298099
feat: add gnu inline asm syntax ( #140 )
3 anos atrás
Amaan Qureshi
a60f1ddef4
Merge pull request #133 from benjaminBrownlee/preproc-define-fix
fix: allow preproc define without value to preceed a line with whitespace
3 anos atrás
Benjamin Brownlee
bb74560cd4
fix: allow preproc define without value to preceed a line with whitespace at start
3 anos atrás
Yoann Padioleau
84bdf40906
Merge pull request #142 from amaanq/enum-bitfield
add multi-bitfield structs and enums with underlying types
3 anos atrás
Amaan Qureshi
f67789cdfd
chore: add some tests
3 anos atrás
Amaan Qureshi
b191f46285
chore: generate
3 anos atrás
Amaan Qureshi
5b5367c4b8
feat: add underlying types in enums, allow bitfield clauses in repeated field declarators
3 anos atrás
Yoann Padioleau
f1b2a0b210
Merge pull request #141 from JasonBrownDeveloper/offsetof
Adding support for offsetof
3 anos atrás
Jason Brown
e1359a0a54
Adding support for offsetof
3 anos atrás
Yoann Padioleau
0906255f8d
Merge pull request #138 from XVilka/patch-1
Fix AppVeyor CI builds
3 anos atrás
Anton Kochkov
0a45948282
Fix AppVeyor CI builds
Update used Windows image and NodeJS version to the latest LTS
3 anos atrás
Yoann Padioleau
121e538a8a
Merge pull request #137 from amaanq/noreturn-generic
Add _Noreturn, __restrict__, and _Generic
3 anos atrás
Amaan Qureshi
ec5e4099ce
chore: generate
3 anos atrás
Amaan Qureshi
4f1a01d461
chore: add a test for the new features
3 anos atrás
Amaan Qureshi
20fee37fd0
feat: add _Generic expressions and missing type qualifiers
_Generic is a C11 feature, __restrict__ and _Noreturn were added to type_qualifiers
3 anos atrás
Yoann Padioleau
a015709e7d
Merge pull request #136 from amaanq/ci-lint
Add CI & Lint actions
3 anos atrás
Amaan Qureshi
8f25e04677
chore: tidy bindings, manifests, & docs
3 anos atrás
Amaan Qureshi
c0b1db960d
feat: add and apply eslint formatting
3 anos atrás
Amaan Qureshi
b906e05ba4
docs: document grammar.js
3 anos atrás
Amaan Qureshi
c56afb2b66
ci: add test and lint actions
3 anos atrás
Yoann Padioleau
cac392ac3d
Merge pull request #135 from amaanq/comment-fix
fix: comments can have multiple delimiting backslashes
3 anos atrás
Amaan Qureshi
a44d8c5ca5
chore: add a test for multi-backslash delimited comments
3 anos atrás
Amaan Qureshi
f5c6f68fdd
chore: generate
3 anos atrás
Amaan Qureshi
16456ce9a1
fix: comments can have multiple delimiting backslashes
3 anos atrás
Yoann Padioleau
424d0145ef
Merge pull request #134 from amaanq/optional-consequence
Support optional consequences
3 anos atrás
Amaan Qureshi
f0db9dfc82
chore: generate
3 anos atrás
Amaan Qureshi
d4a789bf07
feat: support omitting consequences in conditional expressions
It's allowed in gcc and clang
3 anos atrás
Yoann Padioleau
735716c926
Merge pull request #127 from lf-/jade/unicode-ids
fix: implement Unicode identifiers
3 anos atrás
Jade Lovelace
93135e2eb5
fix: implement Unicode identifiers
According to cppreference, identifiers are `(XID_Start | '_')
XID_Continue*`, which is the case as of C++23 and C2x. I have confirmed
this myself with the drafts of C++23 and C2x.
https://en.cppreference.com/w/cpp/language/identifiers
Clang indeed implements identifiers as `(XID_Start | '_') XID_Continue*`
in C++ mode and C2x mode, with a slight extension to the character set
to include some extra math characters:
231992d9b8/clang/lib/Lex/Lexer.cpp (L1517-L1530)
3 anos atrás
Yoann Padioleau
f35789006c
Merge pull request #125 from Luni-4/publish
Add an action to publish the grammar automatically
3 anos atrás
Luni-4
632c68e42c
Add an action to publish the grammar automatically
3 anos atrás
Max Brunsfeld
7175a6dd5f
0.20.2
4 anos atrás
John Drouhard
0720f9c2af
Add test for comma expression in iteration expression
4 anos atrás
Ismail A Bella
94bc261b1a
fix: allow multiple expressions inside for_statement condition
4 anos atrás
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 anos atrás
Ben Dunkin
517bf92b2c
add the body label to for loops to make it the same as other loops ( #110 )
4 anos atrás
Yoann Padioleau
3ced8d6cd2
Merge pull request #105 from lukepistrol/feature/spm
Swift Package Manager
4 anos atrás
Lukas Pistrol
beb1516844
added spm support
4 anos atrás
Lukas Pistrol
5e71a79b24
added spm support
4 anos atrás
Max Brunsfeld
e348e8ec5e
0.20.1
4 anos atrás
John Drouhard
f71e80b9f2
Extract "..." into a named node called variadic_parameter. Fixes #73
4 anos atrás
jdrouhard
9bee34500c
Support attribute statements under case statements ( #83 )
4 anos atrás
John Drouhard
0aeed5578a
Fix indent-level whitespace
4 anos atrás
John Drouhard
b50e693547
Separate _declaration_modifiers from _declaration_specifiers to make it overridable in the cpp grammar
4 anos atrás
Max Brunsfeld
a584fc98ca
0.20.0
4 anos atrás
John Drouhard
0b714a5134
rename attribute_definition to attribute_declaration
4 anos atrás