diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-17 11:25:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 11:25:48 +0000 |
commit | e48bce446cc7ee4f1fb6980209720582def6e4e0 (patch) | |
tree | 1dfb0f6e18f036dfd1596a9ea048ad07cce4f450 /gcc/rust/parse/rust-parse.cc | |
parent | 3ada3d8365ba3889f91140dfe108d3c74d3e4e38 (diff) | |
parent | 313e9890d85b688f538fed52d158b4b4f4aea9dc (diff) | |
parent | 1e873922f0d4fa08448d49c6f5333ffa67fe4704 (diff) | |
download | gcc-e48bce446cc7ee4f1fb6980209720582def6e4e0.zip gcc-e48bce446cc7ee4f1fb6980209720582def6e4e0.tar.gz gcc-e48bce446cc7ee4f1fb6980209720582def6e4e0.tar.bz2 |
Merge #1027 #1032
1027: parser: Allow parsing stmts without closing semicolon r=CohenArthur a=CohenArthur
In certain cases such as macro matching or macro expansion, it is
important to allow the parser to return a valid statement even if no
closing semicolon is given. This commit adds an optional parameter to
the concerned functions to allow a lack of semicolon those special cases
Closes #1011
Closes #1010
1032: Add AST kind information r=CohenArthur a=CohenArthur
Closes #1001
This PR adds a base for adding node information to our AST types. It can be used when requiring to differentiate between multiple kinds of nodes, while not necessarily wanting to do a full static cast. This will open up a lot of cleanup issues and good first issues for Project Pineapple
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>