brainfuck interpreter
brainfuck cli rust
5

Configure Feed

Select the types of activity you want to include in your feed.

feat: improved error messages for SyntaxError

digi.rip (Jun 7, 2026, 2:41 PM EDT) f4106f7f d03b8237

+10 -2
+10 -2
src/parser.rs
··· 11 11 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 12 12 match self { 13 13 SyntaxError::MissingClosingBracket(line, col) => { 14 - write!(f, "for open bracket at line {:?}, col {:?}", line, col) 14 + write!( 15 + f, 16 + "Missing closing bracket for open bracket at line {}, col {}", 17 + line, col 18 + ) 15 19 } 16 20 SyntaxError::MissingOpenBracket(line, col) => { 17 - write!(f, "for closing bracket at line {:?}, col {:?}", line, col) 21 + write!( 22 + f, 23 + "Missing open bracket for closing bracket at line {}, col {}", 24 + line, col 25 + ) 18 26 } 19 27 } 20 28 }