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

Function parse_one

crates/asm-to-binary/src/assembler/mod.rs:73–77  ·  view source on GitHub ↗
(raw: &str)

Source from the content-addressed store, hash-verified

71 AsmToken::Real(RealInstruction::Addi(Addi::new(0, 0, 0)))
72 }
73
74 fn parse_one(raw: &str) -> AsmToken {
75 let tokens = parse(&[dir(raw)]).expect("valid source");
76 assert_eq!(tokens.len(), 1, "expected exactly one token from `{raw}`");
77 tokens.into_iter().next().unwrap()
78 }
79
80 // ---- directive::Directive parsing ----

Callers 7

parser_section_directiveFunction · 0.85
parser_data_labelFunction · 0.85
parser_branch_bneFunction · 0.85
parser_branch_beqFunction · 0.85
parser_j_pseudoFunction · 0.85
parser_jal_with_rdFunction · 0.85
parser_asciz_directiveFunction · 0.85

Calls 2

dirFunction · 0.85
parseFunction · 0.70

Tested by 7

parser_section_directiveFunction · 0.68
parser_data_labelFunction · 0.68
parser_branch_bneFunction · 0.68
parser_branch_beqFunction · 0.68
parser_j_pseudoFunction · 0.68
parser_jal_with_rdFunction · 0.68
parser_asciz_directiveFunction · 0.68