MCPcopy Create free account
hub / github.com/AlenVelocity/MeowScript / parse_block_statement

Method parse_block_statement

src/parser.rs:129–141  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

127 }
128
129 fn parse_block_statement(&mut self) -> BlockStatement {
130 self.next_token();
131
132 let mut statements = vec![];
133 while !self.current_token(Token::RightBrace) && !self.current_token(Token::Eof) {
134 if let Some(s) = self.parse_statement() {
135 statements.push(s);
136 }
137 self.next_token();
138 }
139
140 statements
141 }
142
143 pub fn parse_anew_expr(&mut self) -> Option<Statement> {
144 match &self.peek_token {

Callers 3

parse_loop_exprMethod · 0.80
parse_if_exprMethod · 0.80
parse_fn_exprMethod · 0.80

Calls 3

current_tokenMethod · 0.80
parse_statementMethod · 0.80
next_tokenMethod · 0.45

Tested by

no test coverage detected