MCPcopy Index your code
hub / github.com/endbasic/endbasic / parse_end

Method parse_end

core/src/parser.rs:703–708  ·  view source on GitHub ↗

Parses an `END` statement.

(&mut self, pos: LineCol)

Source from the content-addressed store, hash-verified

701
702 /// Parses an `END` statement.
703 fn parse_end(&mut self, pos: LineCol) -> Result<Statement> {
704 match self.maybe_parse_end(pos)? {
705 Ok(stmt) => Ok(stmt),
706 Err(token) => Err(Error::Bad(pos, format!("END {} without {}", token, token))),
707 }
708 }
709
710 /// Parses an `EXIT` statement.
711 fn parse_exit(&mut self, pos: LineCol) -> Result<Statement> {

Callers 2

parse_unilineMethod · 0.80
parse_oneMethod · 0.80

Calls 1

maybe_parse_endMethod · 0.80

Tested by

no test coverage detected