protected GrammarHint ImplyPrecedenceHere(int precedence, Associativity associativity) { var hint = new GrammarHint(HintType.Precedence, null); hint.Precedence = precedence; hint.Associativity = associativity; return(hint); }
// Contributed by Alexey Yakovlev (yallie) #region Grammar hints // Adds a hint at the end of all productions public void AddHintToAll(GrammarHint hint) { if (this.Rule == null) { throw new Exception("Rule property must be set on non-terminal before calling AddHintToAll."); } foreach (var plusList in this.Rule.Data) { plusList.Add(hint); } }