Exemplo n.º 1
0
 public void Parameter(OsgItem x, TypeDesc type, OsgClassMode @class)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
        private OsgObject IdentList(OsgClassMode var)
        {
            OsgObject first = null;
            if (sym == Token.Ident)
            {
                first = NewObj(var);

                //TODO: Multiple vars

                NextToken();
                if (sym == Token.Colon)
                {
                    NextToken();
                }
                else
                {
                    scanner.Mark(":?");
                }
            }

            return first;
        }
Exemplo n.º 3
0
        private OsgObject NewObj(OsgClassMode proc)
        {
            OsgObject @new;
            OsgObject x = topScope;
            guard.name = scanner.id;

            while (x.next.name != scanner.id)
            {
                x = x.next;
            }

            if (x.next == guard)
            {
                @new = new OsgObject();
                @new.name = scanner.id;
                @new.@class = proc;
                @new.next = guard;
                x.next = @new;
                return @new;
            }
            else
            {
                scanner.Mark("mult def");
                return x.next;
            }
        }
Exemplo n.º 4
0
 private void enter(OsgClassMode typ, int i, string name, TypeDesc type)
 {
     OsgObject osg = new OsgObject();
     osg.@class = typ;
     osg.val = i;
     osg.name = name;
     osg.type = type;
     osg.dsc = null;
     osg.next = topScope.next;
     topScope.next = osg;
 }