mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:51:03 +01: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:
co-authored by
ergawy
Richard Smith
parent
11a138b467
commit
8d5d48a4a7
@@ -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