Пример #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);
        }
Пример #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);
        }
Пример #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));
        }
Пример #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));
 }
Пример #5
0
 Identifier StorageVisitor <Identifier> .VisitTemporaryStorage(TemporaryStorage temp)
 {
     throw new NotImplementedException();
 }