2023-MatKor-Rust-Interpreter
2023-MatKor-Rust-Interpreter is the material(lecture notes, examples and assignments) repository for learning Rust programming language and making simple interpreter that I'll teach the club 'MatKor' at Korea University in the spring of 2023.
Contents
- Week 0 (3/16) [Lecture]
- Introduction
- Week 1 (3/16) [Lecture] [Assignment] [Solution]
- A Tour of Rust, Part 1
- Assignment #1
- Week 2 (3/23) [Lecture] [Assignment] [Solution]
- A Tour of Rust, Part 2
- Assignment #2
- Week 3 (3/30) [Lecture] [Assignment] [Solution]
- A Tour of Rust, Part 3
- Assignment #3
- Week 4 (4/6) [Lecture] [Assignment] [Solution]
- A Tour of Rust, Part 4
- Assignment #4
- Week 5 (4/13)
- A Tour of Rust, Part 5
- Assignment #5
- Week 6 (5/11) [Code] [Assignment] [Solution]
- Lexing
- Lexical Analysis
- Defining Tokens
- The Lexer
- Extending our Token Set and Lexer
- First REPL
- Assignment #6
- Lexing
- Week 7 (5/18) [Code]
- Parsing, Part 1
- Parsers
- Writing a Parser for the Monkey Programming Language
- Parser's first step: Parsing let statements
- Parsing, Part 1
- Week 8 (7/7) [Code]
- Parsing, Part 2
- Parsing Return Statements
- Parsing Expressions
- Parsing, Part 2
- Week 9 (7/13) [Code] [Assignment]
- Parsing, Part 3
- How Pratt Parsing Works
- Extending the Parser, Part 1
- Assignment #7
- Parsing, Part 3
- Week 10 (7/23) [Code] [Assignment]
- Parsing, Part 4
- Extending the Parser, Part 2
- Read-Parse-Print-Loop
- Assignment #8
- Parsing, Part 4
- Week 11 (7/27) [Code]
- Evaluation, Part 1
- Giving Meaning to Symbols
- Strategies of Evaluation
- A Tree-Walking Interpreter
- Representing Objects
- Foundation of Object System
- Integers
- Booleans
- Null
- Evaluating Expressions
- Integer Literals
- Completing the REPL
- Boolean Literals
- Null
- Evaluation, Part 1
- Week 12 (8/6) [Code]
- Evaluation, Part 2
- Evaluating Expressions
- Prefix Expressions
- Infix Expressions
- Conditionals
- Return Statements
- Error Handling
- Evaluating Expressions
- Evaluation, Part 2
- Week 13 (8/10) [Code]
- Evaluation, Part 3
- Bindings & The Environment
- Functions & Function Calls
- Who's taking the trash out?
- Evaluation, Part 3
References
- Beginner
- Intermediate
- Advanced
How To Contribute
Contributions are always welcome, either reporting issues/bugs or forking the repository and then issuing pull requests when you have completed some additional coding that you feel will be beneficial to the main project. If you are interested in contributing in a more dedicated capacity, then please contact me.
Contact
You can contact me via e-mail (utilForever at gmail.com). I am always happy to answer questions or help with any issues you might have, and please be sure to share any additional work or your creations with me, I love seeing what other people are making.
License
The class is licensed under the MIT License:
Copyright © 2023 Chris Ohk.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.