WritingAnInterpreterInGo
- 资料大王PDF
-
0 次阅读
-
0 次下载
-
2024-06-25 23:10:05
微信
赏
支付宝
文档简介:
Writing An Interpreter In Go
Thorsten Ball
Writing An Interpreter In Go
Acknowledgments
Introduction
The Monkey Programming Language & Interpreter
Why Go?
How to Use this Book
Lexing
1.1 - Lexical Analysis
1.2 - Defining Our Tokens
1.3 - The Lexer
1.4 - Extending our Token Set and Lexer
1.5 - Start of a REPL
Parsing
2.1 - Parsers
2.2 - Why not a parser generator?
2.3 - Writing a Parser for the Monkey Programming Language
2.4 - Parser's first steps: parsing let statements
2.5 - Parsing Return Statements
2.6 - Parsing Expressions
2.7 - How Pratt Parsing Works
2.8 - Extending the Parser
2.9 - Read-Parse-Print-Loop
Evaluation
3.1 - Giving Meaning to Symbols
3.2 - Strategies of Evaluation
3.3 - A Tree-Walking Interpreter
3.4 - Representing Objects
3.5 - Evaluating Expressions
3.6 - Conditionals
3.7 - Return Statements
3.8 - Abort! Abort! There's been a mistake!, or: Error Handling
3.9 - Bindings & The Environment
3.10 - Functions & Function Calls
3.11 - Who's taking the trash out?
Extending the Interpreter
4.1 - Data Types & Functions
4.2 - Strings
4.3 - Built-in Functions
4.4 - Array
4.5 - Hashes
4.6 - The Grand Finale
Resources
Feed......
评论
发表评论