Parser - Fixed comments
This commit is contained in:
parent
2e0e3f9ef0
commit
5db3caab61
1 changed files with 4 additions and 4 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Reference in a new issue