Exemplo n.º 1
0
        public bool IsListLabel(string label)
        {
            bool hasListLabel = false;

            if (label != null)
            {
                Rule r = grammar.GetRule(currentRuleName);
                //String stName = null;
                if (r != null)
                {
                    Grammar.LabelElementPair pair = r.GetLabel(label);
                    if (pair != null &&
                        (pair.type == LabelType.TokenList ||
                         pair.type == LabelType.RuleList ||
                         pair.type == LabelType.WildcardTreeList))
                    {
                        hasListLabel = true;
                    }
                }
            }
            return(hasListLabel);
        }
Exemplo n.º 2
0
 public Grammar.LabelElementPair GetElementLabel(string id)
 {
     return(enclosingRule.GetLabel(id));
 }