Expand description
Turn the symbolic program into a sequence of words in binary.
We evaluate (i.e. generate binary from) high-level parts of the
abstract syntax tree, including assignment of default values.
Some of the evaluation of individual parts of the abstract
representation is performed in super::ast.
Re-exportsΒ§
use std::collections::BTreeMap;πuse std::fmt;πuse std::fmt::Debug;πuse std::fmt::Debug;πuse std::fmt::Display;πuse std::fmt::Formatter;πuse std::ops::Shl;πuse tracing::Level;πuse tracing::event;πuse tracing::event;πuse base::charset::Script;πuse base::prelude::Address;πuse base::prelude::IndexBy;πuse base::prelude::Unsigned18Bit;πuse base::prelude::Unsigned36Bit;πuse base::subword;πuse super::ast::Equality;πuse super::ast::Origin;πuse super::ast::RcUpdater;πuse super::collections::OneOrMore;πuse super::memorymap::BlockPosition;πuse super::memorymap::MemoryMap;πuse super::memorymap::RcAllocator;πuse super::memorymap::RcWordAllocationFailure;πuse super::memorymap::RcWordSource;πuse super::source::Source;πuse super::span::Span;πuse super::span::Spanned;πuse super::symbol::ConfigUse;πuse super::symbol::IndexUse;πuse super::symbol::OriginUse;πuse super::symbol::SymbolName;πuse super::types::AssemblerFailure;πuse super::types::BlockIdentifier;πuse super::types::MachineLimitExceededFailure;πuse super::types::ProgramError;πuse crate::symbol::SymbolContext;πuse crate::symtab::ExplicitDefinition;πuse crate::symtab::ExplicitSymbolTable;πuse crate::symtab::FinalSymbolDefinition;πuse crate::symtab::FinalSymbolTable;πuse crate::symtab::FinalSymbolType;πuse crate::symtab::ImplicitDefinition;πuse crate::symtab::ImplicitSymbolTable;πuse crate::symtab::IndexRegisterAssigner;πuse crate::symtab::LookupOperation;πuse crate::symtab::TagDefinition;πuse crate::symtab::record_undefined_symbol_or_return_failure;π
StructsΒ§
- Address
Overflow π - Represents an overflow in adding an index value to an address.
- Evaluation
Context π - Context data used by symbol lookup and word value evaluation.
- Exhausted
Index πRegisters - We ran out of index registers when assigning a default value.
- RcBlock π
- Represents the RC-block.
- Scope
Identifier π - A scope in which a tag name can be looked up.
EnumsΒ§
- Evaluation
Failure π - We failed while evaluating the value of a word (typically, the value of a word in the final assembled output).
- Here
Value π HereValuespecifies the value used for#. A#always signifies the address of the word we are trying to assemble.
TraitsΒ§
- Evaluate π
- The
Evaluatetrait is implemented by any element of the program that can evaluate to a 36-bit word value.
FunctionsΒ§
- assign_
default_ πvalue - Assign a default value for a symbol, using the rules from section 6-2.2 of the Users Handbook, βSYMEX DEFINITON - TAGS - EQUALITIES - AUTOMATIC ASSIGNMENTβ.
- evaluate_
elevated_ πsymbol - Compute the value of a symbol in super/sub/normal script.
- evaluate_
normal_ πsymbol - Compute the value of a symbol appearing in normal script.
- extract_
final_ πequalities - Determine the numerical value of all equalities, where they have one.
- offset_
from_ πorigin - Compute sum of an address and an unsigned offset.