public static void SetUp(Module module, Grammar grammar) { if (pattern == null) { pattern = new AbstractPattern(null, "Statement"); pattern.SetType(typeof(Statement)); } module.SetName("Statement", typeof(Statement)); grammar.PatternDefined(pattern); }
public static void SetUp(Module module, Grammar grammar) { if (pattern == null) { pattern = new AbstractPattern(null, "Expression"); pattern.SetType(typeof(Expression)); } module.SetName("Expression", typeof(Expression)); grammar.PatternDefined(pattern); }
public new static void SetUp(Module module, Grammar grammar) { if (pattern == null) { pattern = new AbstractPattern(null, "ComparisonExpression"); pattern.SetType(typeof(ComparisonExpression)); Expression.pattern.AddAltPattern(pattern); } module.SetName("ComparisonExpression", typeof(ComparisonExpression)); grammar.PatternDefined(pattern); }