@@ -6,6 +6,11 @@ use crate::pc_specific::*;
66use crate :: tokens:: comma_ws;
77use crate :: { ExpressionPos , ExpressionTrait , Expressions , Keyword , ParserError } ;
88
9+ /// Parses an expression.
10+ pub fn expression_pos_p ( ) -> impl Parser < StringView , Output = ExpressionPos , Error = ParserError > {
11+ lazy ( super :: binary_expression:: parser)
12+ }
13+
914/// `( expr [, expr]* )`
1015pub fn in_parenthesis_csv_expressions_non_opt (
1116 expectation : & str ,
@@ -35,10 +40,6 @@ pub fn csv_expressions_first_guarded()
3540 )
3641}
3742
38- pub fn expression_pos_p ( ) -> impl Parser < StringView , Output = ExpressionPos , Error = ParserError > {
39- lazy ( eager_expression_pos_p)
40- }
41-
4243/// Parses an expression that is either preceded by whitespace
4344/// or is a parenthesis expression.
4445///
@@ -61,7 +62,6 @@ pub fn ws_expr_pos_p() -> impl Parser<StringView, Output = ExpressionPos, Error
6162/// <ws> <expr-in-parenthesis> <ws> |
6263/// <expr-in-parenthesis>
6364/// ```
64- #[ deprecated]
6565pub fn ws_expr_pos_ws_p ( ) -> impl Parser < StringView , Output = ExpressionPos , Error = ParserError > {
6666 followed_by_ws ( ws_expr_pos_p ( ) )
6767}
@@ -76,12 +76,6 @@ fn followed_by_ws(
7676 )
7777}
7878
79- /// Parses an expression
80- fn eager_expression_pos_p ( ) -> impl Parser < StringView , Output = ExpressionPos , Error = ParserError >
81- {
82- super :: binary_expression:: parser ( )
83- }
84-
8579/// Parses an expression,
8680/// then demands whitespace, unless the expression is a parenthesis.
8781/// Finally it demands the given keyword.
0 commit comments