finish engram-lang: protocols, decorators, imports, Result, closures, stdlib, integration tests

This commit is contained in:
Will Anderson
2026-04-27 20:22:23 -05:00
parent 316c0a85ce
commit c427a0adc0
32 changed files with 2878 additions and 32 deletions
+1 -1
View File
@@ -911,7 +911,7 @@ impl Parser {
match self.peek() {
Token::StringLiteral(_) => {
// Check if next is Colon
self.tokens.get(self.pos + 1).map_or(false, |t| matches!(t.node, Token::Colon))
self.tokens.get(self.pos + 1).is_some_and(|t| matches!(t.node, Token::Colon))
}
Token::RBrace => false, // empty block `{}`
_ => false,