Writing An Interpreter In Go
暫譯: 用 Go 寫一個解釋器
Thorsten Ball
- 出版商: Thorsten Ball
- 出版日期: 2018-08-07
- 售價: $1,800
- 貴賓價: 9.9 折 $1,782
- 語言: 英文
- 頁數: 265
- 裝訂: Paperback
- ISBN: 3982016118
- ISBN-13: 9783982016115
-
相關分類:
Go 程式語言、程式語言
-
相關翻譯:
用 Go語言自製解釋器 (簡中版)
立即出貨(限量) (庫存=1)
買這商品的人也買了...
-
$650$507 -
$1,700$1,615 -
$2,980$2,831 -
$650$507 -
$1,800$1,782 -
$1,176Julia 1.0 Programming - Second Edition: Quick start to your Data Science projects
-
$2,200$2,090 -
$1,390$1,362 -
$450$405 -
$2,682Fluent Python: Clear, Concise, and Effective Programming, 2/e (Paperback)
-
$720$562 -
$980$764 -
$954$906
商品描述
Writing An Interpreter In Go - Version 1.5 - Find out more at https://interpreterbook.com
In this book we will create a programming language together. We'll start with 0 lines of code and end up with a fully working interpreter for the Monkey programming language.
Step by step. From tokens to output. All code shown and included. Fully tested.
Buy this book to learn:
- How to build an interpreter for a C-like programming language from scratch
- What a lexer, a parser and an Abstract Syntax Tree (AST) are and how to build your own
- What closures are and how and why they work
- What the Pratt parsing technique and a recursive descent parser is
- What others talk about when they talk about built-in data structures
- What REPL stands for and how to build one
Why this book?
This is the book I wanted to have a year ago. This is the book I couldn't find. I wrote this book for you and me. So why should you buy it? What's different about it, compared to other interpreter or compiler literature?
- Working code is the focus. Code is not just found in the appendix. Code is the main focus of this book.
- It's small! It has around 200 pages of which a great deal are readable, syntax-highlighted, working code.
- The code presented in the book is easy to understand, easy to extend, easy to maintain.
- No 3rd party libraries! You're not left wondering: "But how does tool X do that?" We won't use a tool X. We only use the Go standard library and write everything ourselves.
- Tests! The interpreter we build in the book is fully tested! Sometimes in TDD style, sometimes with the tests written after. You can easily run the tests to experiment with the interpreter and make changes.
This book is for you if you...
- learn by building, love to look under the hood
- love programming and to program for the sake of learning and joy!
- are interested in how your favorite, interpreted programming language works
- never took a compiler course in college
- want to get started with interpreters or compilers…
- ... but don't want to work through a theory-heavy, 800 pages, 4 pounds compiler book as a beginner
- kept screaming "show me the code!" when reading about interpreters and compilers
- always wanted to say: "Holy shit, I built a programming language!"
商品描述(中文翻譯)
**用 Go 寫一個解譯器 - 版本 1.5** - 更多資訊請訪問 https://interpreterbook.com
在這本書中,我們將一起創建一種程式語言。我們將從 0 行程式碼開始,最終完成一個完整運作的 Monkey 程式語言解譯器。
一步一步來。從標記到輸出。所有程式碼均已顯示並包含。經過全面測試。
購買這本書以學習:
- 如何從零開始為一種類 C 的程式語言構建解譯器
- 什麼是詞法分析器(lexer)、語法分析器(parser)和抽象語法樹(Abstract Syntax Tree, AST),以及如何構建自己的
- 什麼是閉包(closures),它們是如何運作的,為什麼會這樣
- 什麼是 Pratt 解析技術和遞歸下降解析器(recursive descent parser)
- 當人們談論內建資料結構時,他們在談論什麼
- REPL 代表什麼,以及如何構建一個
為什麼選擇這本書?
這是我一年前想要的書。這是我找不到的書。我為你和我寫了這本書。那麼你為什麼要購買它?與其他解譯器或編譯器文獻相比,它有什麼不同?
- 工作程式碼是重點。程式碼不僅僅在附錄中找到。程式碼是這本書的主要焦點。
- 它很小!大約有 200 頁,其中大部分是可讀的、語法高亮的、可運行的程式碼。
- 書中呈現的程式碼易於理解、擴展和維護。
- 沒有第三方庫!你不會想知道:「工具 X 是怎麼做到的?」我們不會使用工具 X。我們只使用 Go 標準庫,並自己編寫所有內容。
- 測試!我們在書中構建的解譯器是經過全面測試的!有時是 TDD 風格,有時是測試在後面編寫。你可以輕鬆運行測試來實驗解譯器並進行更改。
如果你...
- 通過構建學習,喜歡深入了解內部運作
- 熱愛程式設計,並為了學習和樂趣而編程!
- 對你最喜愛的解譯型程式語言的運作方式感興趣
- 在大學時從未上過編譯器課程
- 想開始學習解譯器或編譯器……
- …但不想作為初學者閱讀一本理論繁重、800 頁、4 磅重的編譯器書籍
- 在閱讀解譯器和編譯器時一直大喊「給我程式碼!」
- 一直想說:「天啊,我建立了一種程式語言!」
作者簡介
Thorsten Ball
Thorsten Ball is a professional software developer and writer.
His writing is a result of his love for what he calls "recreational programming", where he digs deep into various topics, hoping to come out the other end with a better understanding of what it is that we do when we program. For the last few years, the two topics that kept his attention the most are systems programming and programming languages.
He's also interested in the other side of doing professional software development: software engineering in a team, communicating through code, team and company culture and how to write great code together.
This fascination with programming and what it means to develop software, turned into his two books and various blog posts, podcast appearances and talks.
作者簡介(中文翻譯)
**Thorsten Ball**
Thorsten Ball 是一位專業的軟體開發者和作家。
他的寫作源於他對所謂的「休閒程式設計」的熱愛,在這個過程中,他深入探討各種主題,希望能更好地理解我們在程式設計時所做的事情。在過去幾年中,最吸引他注意的兩個主題是系統程式設計和程式語言。
他也對專業軟體開發的另一面感興趣:團隊中的軟體工程、透過程式碼進行溝通、團隊和公司文化,以及如何共同撰寫優秀的程式碼。
對程式設計及其開發軟體的意義的著迷,促成了他的兩本書以及各種部落格文章、播客出現和演講。