Amaan Qureshi
60544dbdd2
Revert "fix: rework top level function definition pointer association"
This reverts commit eb6649e0c2 .
3年前
Amaan Qureshi
0ca9561fef
fix: mostly correct sized_type_specifiers in type definitions
3年前
Amaan Qureshi
929e52f2d4
feat: add attribute_specifier to the end of struct, union, enum, and field_declaration
3年前
Amaan Qureshi
1e6557a90d
fix: allow numbers in preproc_directive
3年前
Amaan Qureshi
5c2cb95140
Merge pull request #146 from amaanq/decl-binop-conflict
fix: rework translation-unit top-level items to disallow binary expressions & rework top level function definition pointer association
3年前
Amaan Qureshi
0df358adfb
chore: generate
3年前
Amaan Qureshi
35595638e2
chore: add tests
3年前
Amaan Qureshi
eb6649e0c2
fix: rework top level function definition pointer association
Previously, pointers were associated with the function identifier, now they're associated with the return type
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
51cd29c3d1
Merge pull request #148 from amaanq/c23-baby
feat: C23
3年前
Amaan Qureshi
c75868f8b5
feat: C23
3年前
Amaan Qureshi
b99d137fd7
Merge pull request #149 from amaanq/typedef-qual
feat: allow type_qualifiers after typedef specifier, alias char content
3年前
Amaan Qureshi
bb4ab38847
feat: allow type_qualifiers after typedef specifier, alias char content
3年前
Amaan Qureshi
6ef89c54e1
Merge pull request #115 from antoinemadec/master
feat: add else_clause
3年前
antoinemadec
7f678a26bb
Add else_clause
3年前
Amaan Qureshi
618018069b
Merge pull request #72 from tjdevries/tjdevries/add_compound_statement_to_call_expression
fix: add compound statement to call expression
3年前
Amaan Qureshi
a726cb95ee
chore: add a test
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
a60f1ddef4
Merge pull request #133 from benjaminBrownlee/preproc-define-fix
fix: allow preproc define without value to preceed a line with whitespace
3年前
Benjamin Brownlee
bb74560cd4
fix: allow preproc define without value to preceed a line with whitespace at start
3年前
Yoann Padioleau
84bdf40906
Merge pull request #142 from amaanq/enum-bitfield
add multi-bitfield structs and enums with underlying types
3年前
Amaan Qureshi
f67789cdfd
chore: add some tests
3年前
Amaan Qureshi
b191f46285
chore: generate
3年前
Amaan Qureshi
5b5367c4b8
feat: add underlying types in enums, allow bitfield clauses in repeated field declarators
3年前
Yoann Padioleau
f1b2a0b210
Merge pull request #141 from JasonBrownDeveloper/offsetof
Adding support for offsetof
3年前
Jason Brown
e1359a0a54
Adding support for offsetof
3年前
Yoann Padioleau
0906255f8d
Merge pull request #138 from XVilka/patch-1
Fix AppVeyor CI builds
3年前
Anton Kochkov
0a45948282
Fix AppVeyor CI builds
Update used Windows image and NodeJS version to the latest LTS
3年前
Yoann Padioleau
121e538a8a
Merge pull request #137 from amaanq/noreturn-generic
Add _Noreturn, __restrict__, and _Generic
3年前
Amaan Qureshi
ec5e4099ce
chore: generate
3年前
Amaan Qureshi
4f1a01d461
chore: add a test for the new features
3年前
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年前
Yoann Padioleau
a015709e7d
Merge pull request #136 from amaanq/ci-lint
Add CI & Lint actions
3年前
Amaan Qureshi
8f25e04677
chore: tidy bindings, manifests, & docs
3年前
Amaan Qureshi
c0b1db960d
feat: add and apply eslint formatting
3年前
Amaan Qureshi
b906e05ba4
docs: document grammar.js
3年前
Amaan Qureshi
c56afb2b66
ci: add test and lint actions
3年前
Yoann Padioleau
cac392ac3d
Merge pull request #135 from amaanq/comment-fix
fix: comments can have multiple delimiting backslashes
3年前
Amaan Qureshi
a44d8c5ca5
chore: add a test for multi-backslash delimited comments
3年前
Amaan Qureshi
f5c6f68fdd
chore: generate
3年前
Amaan Qureshi
16456ce9a1
fix: comments can have multiple delimiting backslashes
3年前
Yoann Padioleau
424d0145ef
Merge pull request #134 from amaanq/optional-consequence
Support optional consequences
3年前
Amaan Qureshi
f0db9dfc82
chore: generate
3年前
Amaan Qureshi
d4a789bf07
feat: support omitting consequences in conditional expressions
It's allowed in gcc and clang
3年前
Yoann Padioleau
735716c926
Merge pull request #127 from lf-/jade/unicode-ids
fix: implement Unicode identifiers
3年前
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年前
Yoann Padioleau
f35789006c
Merge pull request #125 from Luni-4/publish
Add an action to publish the grammar automatically
3年前
Luni-4
632c68e42c
Add an action to publish the grammar automatically
3年前