m2isar.frontends.coredsl2.source_semantics
Source semantic validation before simplification and model lowering.
Keeps ISA parameter values separate for each root ISA and preserves block scope. Currently models integers, arrays, address spaces and function signatures; unknown composite/pointer/intrinsic types are explicitly deferred.
Attributes
Classes
Source validator view of a declared name, typed with a DslType. |
|
Lexical scopes in |
Functions
|
|
|
Collect proven invalid values/types without replacing the primary error. |
|
Module Contents
- class DslSymbol[source]
Source validator view of a declared name, typed with a DslType.
Not to be confused with
arch.Symbol: a DslSymbol exists before and alongside the model. When it is built from an existing model object (arch.Symbolorarch.Parameter),modelrefers to that object.
- class SemanticValidator(tree, warnings_info, parameter_values=None)[source]
Bases:
m2isar.frontends.coredsl2.parser_gen.CoreDSL2Visitor,m2isar.warnings.WarningsManager,m2isar.frontends.coredsl2.source_validator.ScopeStackLexical scopes in
self.scopes: name -> entity dicts, innermost last.