protected List <AssemblyElement> GetExecBlockInstructions(string execBlockName)
        {
            if (!_parsed)
            {
                ParseData();
            }
            BlockSymbol blockSymbol = (BlockSymbol)_testsHelper.SymbolTable[execBlockName.ToUpper()];

            return(blockSymbol.Instructions);
        }
Beispiel #2
0
 protected NestableSymbol(BlockSymbol parentBlockSymbol, string typeName, string name, ASTNode node) : base(name, node)
 {
     ParentBlockSymbol = parentBlockSymbol;
     TypeName          = typeName.ToUpper();
     BuiltinType       = GetBuiltinType(TypeName);
     ComplexType       = null;
     if (parentBlockSymbol != null)
     {
         Path = $"{parentBlockSymbol.Name}.{name}".ToUpper();
         if (!parentBlockSymbol.BodySymbols.ContainsKey(name.ToUpper()))
         {
             parentBlockSymbol.AddBodySymbol(this);
         }
     }
 }
Beispiel #3
0
 public ExternalParameterArraySymbol(BlockSymbol parentBlockSymbol, string typeName, string name, ASTNode node) : base(parentBlockSymbol, typeName, name, node)
 {
 }
Beispiel #4
0
 public ParameterSymbol(BlockSymbol parentBlockSymbol, string typeName, string name, ASTNode node) : base(parentBlockSymbol, typeName, name, node)
 {
 }
Beispiel #5
0
 public ConstArraySymbol(BlockSymbol parentBlockSymbol, string typeName, string name, ASTNode node) : base(parentBlockSymbol, typeName, name, node)
 {
 }
Beispiel #6
0
 public AttributeSymbol(BlockSymbol parentBlockSymbol, string typeName, string name, ASTNode node) : base(parentBlockSymbol, typeName, name, node)
 {
 }