mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 15:51:07 +01:00
Parsing for while, break, and continue statements, following #340.
This commit is contained in:
@@ -183,6 +183,12 @@ class ParseTree::Parser {
|
||||
// Parses an if-statement.
|
||||
auto ParseIfStatement() -> llvm::Optional<Node>;
|
||||
|
||||
// Parses a while-statement.
|
||||
auto ParseWhileStatement() -> llvm::Optional<Node>;
|
||||
|
||||
// Parses a statement of the form `keyword;` such as `break;` or `continue;`.
|
||||
auto ParseKeywordStatement(ParseNodeKind kind) -> llvm::Optional<Node>;
|
||||
|
||||
// Parses a statement.
|
||||
auto ParseStatement() -> llvm::Optional<Node>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user