private BindingPower PeekBindingPower() { if (!_infixParslets.ContainsKey(_peekToken.Type)) { return(BindingPower.LOWEST); } IInfixParslet parslet = _infixParslets[_peekToken.Type]; return(parslet.GetBindingPower()); }
private void RegisterInfix(TokenType tokenType, IInfixParslet parslet) { _infixParslets.Add(tokenType, parslet); }
public Grammar RegisterInfix(ExpressionKind kind, IInfixParslet <ValueNode> parslet) { infixParslets.Add(kind, parslet); return(this); }