Add string reference word
This commit is contained in:
parent
d27acb2fa7
commit
f997fdaf64
3 changed files with 20 additions and 4 deletions
|
@ -55,7 +55,11 @@ impl Data {
|
|||
instructions.push(match mode.as_str() {
|
||||
"." => {
|
||||
let id = self.strings.insert_full(string).0;
|
||||
Instruction::DotQuote(id)
|
||||
Instruction::StringPrint(id)
|
||||
}
|
||||
"r" => {
|
||||
let id = self.strings.insert_full(string).0;
|
||||
Instruction::StringReference(id)
|
||||
}
|
||||
"asm" => Instruction::AsmQuote(string),
|
||||
_ => bail!("Unknown string mode: {}", mode),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue