Пример #1
0
        public static void SetUp(Module module, Grammar grammar)
        {
            if (pattern == null)
            {
                pattern = new AbstractPattern(null, "Member");
                pattern.SetType(typeof(Member));
            }

            module.SetName("Member", typeof(Member));
            grammar.PatternDefined(pattern);
        }
Пример #2
0
        public static void SetUp(Module module, Grammar grammar)
        {
            if (pattern == null)
            {
                pattern = new AbstractPattern(null, "PatternExpression");
                pattern.SetType(typeof(PatternExpression));
            }

            module.SetName("PatternExpression", typeof(PatternExpression));
            grammar.PatternDefined(pattern);
        }
Пример #3
0
        public new static void SetUp(Module module, Grammar grammar)
        {
            if (pattern == null)
            {
                pattern = new AbstractPattern(null, "UnaryExpression");
                pattern.SetType(typeof(UnaryExpression));

                Expression.pattern.AddAltPattern(pattern);
            }

            module.SetName("UnaryExpression", typeof(UnaryExpression));
            grammar.PatternDefined(pattern);
        }