Example #1
0
        public Identifier CreateTemporary(string name, DataType dt)
        {
            var tmp = new TemporaryStorage(name, ids.Count, dt);
            var id  = new Identifier(name, dt, tmp);

            ids.Add(id);
            return(id);
        }
Example #2
0
        public Identifier CreateTemporary(DataType dt)
        {
            var name = "v" + ids.Count;
            var tmp  = new TemporaryStorage(name, ids.Count, dt);
            var id   = Identifier.Create(tmp);

            ids.Add(id);
            return(id);
        }
Example #3
0
        private static Identifier CreateIdentifier(Address addr)
        {
            string name;

            if (addr.Selector.HasValue)
            {
                name = string.Format("seg{0:X4}", addr.Selector.Value);
            }
            else
            {
                name = $"seg{addr}";
            }
            var dt  = PrimitiveType.SegmentSelector;
            var stg = new TemporaryStorage(name, 0, dt);

            return(Identifier.Create(stg));
        }
Example #4
0
 public Expression VisitTemporaryStorage(TemporaryStorage temp)
 {
     throw new NotSupportedException(string.Format("A {0} can't be used as a formal parameter.", temp.GetType().FullName));
 }
Example #5
0
 Identifier StorageVisitor <Identifier> .VisitTemporaryStorage(TemporaryStorage temp)
 {
     throw new NotImplementedException();
 }