Esempio n. 1
0
        public void AddArray(IdentifierToken identifierToken, SymArray arrayType, SymVar.SymLocTypeEnum locType)
        {
            RequireSymbolRewritable(identifierToken);
            var symVar = new SymVar(identifierToken.Value, arrayType, null, locType);

            _stack.Peek().Add(symVar);
        }
Esempio n. 2
0
 //arrays
 public void DeclareVariable(string name, SymArray symArray)
 {
     _out.WriteLine($"{name}: times {(symArray.BSize).ToString()} db 0");
 }