Parser - Fixed comments

This commit is contained in:
Emmanuel BENOîT 2023-01-01 18:13:32 +01:00
parent 2e0e3f9ef0
commit 5db3caab61

View file

@ -260,8 +260,8 @@ impl Parser {
/// Parse the following rule:
/// ```
/// term := factor "+" factor
/// term := factor "-" factor
/// term := factor ( "+" factor )*
/// term := factor ( "-" factor )*
/// ```
fn parse_term(&mut self) -> ParserResult<ast::ExprNode> {
let mut expr = self.parse_factor()?;
@ -278,8 +278,8 @@ impl Parser {
/// Parse the following rule:
/// ```
/// factor := unary "*" unary
/// factor := unary "/" unary
/// factor := unary ( "*" unary )*
/// factor := unary ( "/" unary )*
/// ```
fn parse_factor(&mut self) -> ParserResult<ast::ExprNode> {
let mut expr = self.parse_unary()?;