mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 21:26:43 +00:00
Parsing for if-statements, following #285.
This commit is contained in:
1 parent
8280be1c36
commit
5d6947186d
4 files changed
+201
-1
No files matched your search
@@ -171,6 +171,12 @@ class ParseTree::Parser {
|
||||
// Parses an expression statement: an expression followed by a semicolon.
|
||||
auto ParseExpressionStatement() -> llvm::Optional<Node>;
|
||||
|
||||
// Parses the parenthesized condition in an if-statement.
|
||||
auto ParseParenCondition(TokenKind introducer) -> llvm::Optional<Node>;
|
||||
|
||||
// Parses an if-statement.
|
||||
auto ParseIfStatement() -> llvm::Optional<Node>;
|
||||
|
||||
// Parses a statement.
|
||||
auto ParseStatement() -> llvm::Optional<Node>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user