mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 12:46:37 +00:00
Parsing for while, break, and continue statements, following #340.
This commit is contained in:
1 parent
146d995995
commit
153d92b390
4 files changed
+91
No files matched your search
@@ -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