Skip to content

Commit

Permalink
Update lecture_en.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yqyq-w committed May 26, 2024
1 parent d7c397a commit 83f8d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course11/lecture_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ fn Expression::number(i: Int) -> Expression { Number(i) }
// Parse
test {
inspect((parse_string_tagless_final("1 + 1 * (307 + 7) + 5 - 3 - 2") :
Option[(Expression, String, List[Token])]), ~content=
Option[(Expression, String, List[Token])]), content=
#|Some((Minus(Minus(Plus(Plus(Number(1), Multiply(Number(1), Plus(Number(307), Number(7)))), Number(5)), Number(3)), Number(2)), "", List::[]))
)? // Get the syntax tree
inspect((parse_string_tagless_final("1 + 1 * (307 + 7) + 5 - 3 - 2") :
Option[(BoxedInt, String, List[Token])]), ~content=
Option[(BoxedInt, String, List[Token])]), content=
#|Some((BoxedInt(315), "", List::[]))
)? // Get the calculation result
}
Expand Down

0 comments on commit 83f8d4b

Please sign in to comment.