ENGLISH

Writing a Compiler in Go

Book information

Publisher
Thorsten Ball
Year
2018
ISBN
978-3982016108
Language
english
Format
PDF
Filesize
2 MB (1847306 bytes)
Pages
354\354
Time added
2019-03-07 13:24:46

Description

converted PDF Contents......Page 2 Intro......Page 5 Evolving Monkey......Page 7 Use this Book......Page 12 Compilers & Virtual Machines......Page 14 Compilers......Page 16 Virtual & Real Machines......Page 21 Duality of VM & Compiler......Page 37 Hello Bytecode!......Page 38 First Instructions......Page 40 Adding on the Stack......Page 69 Hooking up the REPL......Page 76 Compiling Expressions......Page 78 Cleaning up the Stack......Page 79 Infix Expressions......Page 84 Booleans......Page 89 Comparison Operators......Page 95 Prefix Expressions......Page 103 Conditionals......Page 110 Jumps......Page 114 Compiling Conditionals......Page 117 Executing Jumps......Page 134 Welcome back, Null!......Page 138 Keeping Track of Names......Page 147 The Plan......Page 149 Compiling Bindings......Page 152 Adding Globals to the VM......Page 162 String, Array & Hash......Page 168 String......Page 169 Array......Page 175 Hash......Page 181 Adding the index operator......Page 188 Functions......Page 195 Simple Function......Page 196 Local Bindings......Page 235 Arguments......Page 264 Built-in Functions......Page 284 Making the Change easy......Page 286 Making the Change - Plan......Page 293 New Scope for Built-in Functions......Page 295 Executing built-in Functions......Page 301 Closures......Page 307 The Problem......Page 309 The Plan......Page 311 Everything’s a Closure......Page 314 Compiling & resolving Free Variables......Page 326 Creating real Closures at Run Time......Page 339 Taking Time......Page 344 Resources......Page 349 Feedback......Page 353 Changelog......Page 354

Similar books