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); }
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); }
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); }