code: def p_scope(p):
      
      slist = p[4]
      scopes = OrderedDict()
      for i in ('CLASS',
                'ASSOCIATION',
                'INDICATION',
                'PROPERTY',
                'REFERENCE',
                'METHOD',
                'PARAMETER',
                'ANY'):
          scopes[i] = i in slist
      p[0] = scopes
docs: scope : ',' SCOPE '(' metaElementList ')