79833231

Date: 2025-11-29 12:20:42
Score: 1
Natty:
Report link

I see your points and it is definitely much simpler to just contain a Compiler struct within compile.

pub fn compile(source: &str) -> Result<Chunk, String> {
    let mut chunk = Chunk::new();
    let mut compiler  = Compiler::new(&mut chunk, source);
    
    compiler.consume()?;

    Ok(chunk)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: NongusStudios