What you’ll learn
The system will walk you through each step of language-building. Each section of the book will introduce a new concept and then apply its principles to a language that we’ll build together. All technical chapters end with a Do It Yourself section that suggest some language-extending exercises. You’ll find solutions to those at the end of this book.
The language will be dynamic and very similar to Ruby and Python. All of the code will be in Ruby, but I’ve put lots of attention to keep the code as simple as possible so that you can understand what’s happening even if you don’t know Ruby. The focus of this book is not on how to build a production-ready language. Instead, it should serve as an introduction in building your first toy language.
Here are some subjects covered in the book:
Lexer, with Python-style indentation
Parser, using Racc (a Yacc-like tool)
Runtime, bootstrapping and self-hosting
Compilation, using LLVM
And much more!
click me to learn
The system will walk you through each step of language-building. Each section of the book will introduce a new concept and then apply its principles to a language that we’ll build together. All technical chapters end with a Do It Yourself section that suggest some language-extending exercises. You’ll find solutions to those at the end of this book.
The language will be dynamic and very similar to Ruby and Python. All of the code will be in Ruby, but I’ve put lots of attention to keep the code as simple as possible so that you can understand what’s happening even if you don’t know Ruby. The focus of this book is not on how to build a production-ready language. Instead, it should serve as an introduction in building your first toy language.
Here are some subjects covered in the book:
Lexer, with Python-style indentation
Parser, using Racc (a Yacc-like tool)
Runtime, bootstrapping and self-hosting
Compilation, using LLVM
And much more!
click me to learn
0 comments:
Post a Comment