mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 12:42:39 +00:00
Parsing support for return statements.
This commit is contained in:
1 parent
7a74ac18a7
commit
e3b732e564
4 files changed
+69
-15
No files matched your search
@@ -199,8 +199,16 @@ class ParseTree::Parser {
|
||||
// Parses a while-statement.
|
||||
auto ParseWhileStatement() -> llvm::Optional<Node>;
|
||||
|
||||
enum class KeywordStatementArgument {
|
||||
None,
|
||||
Optional,
|
||||
Mandatory,
|
||||
};
|
||||
|
||||
// Parses a statement of the form `keyword;` such as `break;` or `continue;`.
|
||||
auto ParseKeywordStatement(ParseNodeKind kind) -> llvm::Optional<Node>;
|
||||
auto ParseKeywordStatement(ParseNodeKind kind,
|
||||
KeywordStatementArgument argument)
|
||||
-> llvm::Optional<Node>;
|
||||
|
||||
// Parses a statement.
|
||||
auto ParseStatement() -> llvm::Optional<Node>;
|
||||
|
||||
Reference in new issue
Block a user