Beispiel #1
0
        public Identifier RegisterGlobal(GlobalDefinition global)
        {
            var dt = TranslateType(global.Type);
            var id = Identifier.Global(global.Name, dt);

            this.Globals.Add(global.Name, id);
            return(id);
        }
Beispiel #2
0
        public Identifier RegisterGlobal(GlobalDefinition global)
        {
            var dt = TranslateType(global.Type);
            var id = new Identifier(global.Name, dt, new MemoryStorage());

            this.Globals.Add(global.Name, id);
            return(id);
        }