Книги / DevOps и Инфраструктура / AWS / Build Your Own Programming Language, Second Edition

Build Your Own Programming Language, Second Edition

Clinton L. Jeffery

This book is a comprehensive guide for developers who want to understand and implement programming languages from scratch. It covers the entire process from design to implementation, including parsing, syntax trees, symbol tables, and bytecode generation.

The second edition has been updated to include modern techniques and practical examples. The author, Clinton L. Jeffery, draws on his experience creating the Unicon programming language to provide insights into language design and implementation.

The book begins with motivations and types of language implementations, then moves to organizing a bytecode language. It discusses the differences between programming languages and libraries, laying a foundation for both novices and experienced programmers.

Detailed chapters cover lexical analysis, context-free grammar, parsing, and the construction of syntax trees. Practical examples and case studies, such as the development of Unicon and the Jzero language, illustrate key concepts.

The book also addresses advanced topics like designing graphics facilities, handling syntax trees and symbol tables, and includes questions at the end of each chapter to reinforce learning. It blends theoretical knowledge with practical application, making it suitable for students, professional programmers, and enthusiasts.