mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 04:46:38 +00:00
[toolchain][parser] Parse for statement. (#2180)
Summary: Add support for parsing `for` loops. Co-authored-by: ergawy <kareem.ergawy@guardsquare.com> Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
6 files changed
+283
No files matched your search
@@ -250,6 +250,9 @@ class ParseTree::Parser {
|
||||
// Parses a while-statement.
|
||||
auto ParseWhileStatement() -> llvm::Optional<Node>;
|
||||
|
||||
// Parses a for-statement.
|
||||
auto ParseForStatement() -> llvm::Optional<Node>;
|
||||
|
||||
enum class KeywordStatementArgument {
|
||||
None,
|
||||
Optional,
|
||||
|
||||
Reference in new issue
Block a user