private static RuleExpression AddWithOr(BaseExpression lhs, BaseTerminal rhs) { return AddWithOr( lhs, new SymbolExpression( new LexerRuleModel( new TerminalLexerRule(rhs, rhs.ToString())))); }
private static RuleExpression AddWithAnd(BaseTerminal lhs, BaseExpression rhs) { return AddWithAnd( new SymbolExpression( new LexerRuleModel( new TerminalLexerRule(lhs, lhs.ToString()))), rhs); }