Esempio n. 1
0
 public static TokenListParser <TKind, T> Between <TKind, T>(this TokenListParser <TKind, T> parser, TKind left, TKind right)
 => parser.Between(Token.EqualTo(left), Token.EqualTo(right));
Esempio n. 2
0
 public static TokenListParser <FormulaToken, T> BetweenParenthesis <T>(this TokenListParser <FormulaToken, T> self)
 {
     return(self.Between(Token.EqualTo(FormulaToken.LeftParenthesis), Token.EqualTo(FormulaToken.RightParenthesis)));
 }
Esempio n. 3
0
 public static TokenListParser <LangToken, T> BetweenBraces <T>(this TokenListParser <LangToken, T> self)
 {
     return(self.Between(Token.EqualTo(LangToken.LeftBrace), Token.EqualTo(LangToken.RightBrace)));
 }
Esempio n. 4
0
 public static TokenListParser <CToken, T> BetweenParenthesis <T>(this TokenListParser <CToken, T> self)
 {
     return(self.Between(Token.EqualTo(CToken.LParen), Token.EqualTo(CToken.RParen)));
 }
Esempio n. 5
0
 public static TokenListParser <CToken, T> BetweenBraces <T>(this TokenListParser <CToken, T> self)
 {
     return(self.Between(Token.EqualTo(CToken.LBrace), Token.EqualTo(CToken.RBrace)));
 }
Esempio n. 6
0
 public static TokenListParser <TToken, TResult> Between <TToken, TResult>(this TokenListParser <TToken, TResult> self, TToken left, TToken right)
 {
     return(self.Between(Token.EqualTo(left), Token.EqualTo(right)));
 }