MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / fmt

Method fmt

crates/asm-to-binary/src/rv_instruction.rs:42–50  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

40 for (index, raw) in src.lines().enumerate() {
41 let line = raw.trim();
42 if line.is_empty() || line.starts_with('#') || line.starts_with(';') {
43 continue;
44 }
45 if let Some(name) = line.strip_suffix(':')
46 && !name.is_empty()
47 && !name.contains(|c: char| c.is_whitespace())
48 {
49 out.push(RvInstruction::Label(name.to_owned()));
50 continue;
51 }
52 if line.starts_with('.') {
53 out.push(RvInstruction::Directive(line.to_owned()));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected