2023
October
3

3rd October

Parsing return statements

This was much easier than parsing let statement. As return statements only consists of a token type (return) and an expression.

Just as for let, parsing the expression will be done later. So it's skipped over when parsing the expression.

This finishes parsing over expressions in the monkey language that the parser is being created for. As there are only two expressions let & return

Commit:1647119 (opens in a new tab)

Subscribe to my newsletter

The latest news, articles, and resources, sent to your inbox weekly.

© 2024 Seagin, Inc. All rights reserved.