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

Function asm_text_to_tokens

src/cli/main.rs:466–470  ·  view source on GitHub ↗

Wrap each line of assembly text in a `Directive` token. The assembler's pass-0 parser recognises labels (`name:`), section directives (`.text`, `.asciz`, ...) and most instruction mnemonics from lines that begin with a tab or space. Unrecognised mnemonics become no-op comments.

(text: &str)

Source from the content-addressed store, hash-verified

464 Ok((fs, config))
465}
466
467fn cli_workspace_for_input(input: &str) -> Result<(NativeFs, VPath), CliError> {
468 let cwd = std::env::current_dir()?;
469 let path = Path::new(input);
470 let (root, relative) = if path.is_absolute() {
471 let canonical = path.canonicalize()?;
472 let cwd = cwd.canonicalize()?;
473 if let Ok(relative) = canonical.strip_prefix(&cwd) {

Callers 1

assemble_from_s_fileFunction · 0.85

Calls 2

DirectiveEnum · 0.85
collectMethod · 0.80

Tested by

no test coverage detected