{"product_id":"build-your-own-programming-language-a-programmers-guide-to-designing-compilers-interpreters-and-dsls-for-solving-modern-computing-problems-9781800204805","title":"Build Your Own Programming Language: A programmer's guide to designing compilers, interpreters, and DSLs for solving modern computing problems","description":"\u003cp\u003e • Author(s): Clinton L. Jeffery\u003cbr\u003e • Publisher: Packt Publishing\u003cbr\u003e • Publisher Imprint: Packt Publishing\u003cbr\u003e • BISAC: Languages - Java\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eWritten by the creator of the Unicon programming language, this book will show you how to implement programming languages to reduce the time and cost of creating applications for new or specialized areas of computing\u003c\/strong\u003e\u003c\/p\u003eKey Features\u003cul\u003e\n\u003cli\u003eReduce development time and solve pain points in your application domain by building a custom programming language\u003c\/li\u003e\n\u003cli\u003eLearn how to create parsers, code generators, file readers, analyzers, and interpreters\u003c\/li\u003e\n\u003cli\u003eCreate an alternative to frameworks and libraries to solve domain-specific problems\u003c\/li\u003e\n\u003c\/ul\u003eBook Description\u003cp\u003eThe need for different types of computer languages is growing rapidly and developers prefer creating domain-specific languages for solving specific application domain problems. Building your own programming language has its advantages. It can be your antidote to the ever-increasing size and complexity of software.\u003c\/p\u003e\u003cp\u003eIn this book, you'll start with implementing the frontend of a compiler for your language, including a lexical analyzer and parser. The book covers a series of traversals of syntax trees, culminating with code generation for a bytecode virtual machine. Moving ahead, you'll learn how domain-specific language features are often best represented by operators and functions that are built into the language, rather than library functions. We'll conclude with how to implement garbage collection, including reference counting and mark-and-sweep garbage collection. Throughout the book, Dr. Jeffery weaves in his experience of building the Unicon programming language to give better context to the concepts where relevant examples are provided in both Unicon and Java so that you can follow the code of your choice of either a very high-level language with advanced features, or a mainstream language.\u003c\/p\u003e\u003cp\u003eBy the end of this book, you'll be able to build and deploy your own domain-specific languages, capable of compiling and running programs.\u003c\/p\u003eWhat you will learn\u003cul\u003e\n\u003cli\u003ePerform requirements analysis for the new language and design language syntax and semantics\u003c\/li\u003e\n\u003cli\u003eWrite lexical and context-free grammar rules for common expressions and control structures\u003c\/li\u003e\n\u003cli\u003eDevelop a scanner that reads source code and generate a parser that checks syntax\u003c\/li\u003e\n\u003cli\u003eBuild key data structures in a compiler and use your compiler to build a syntax-coloring code editor\u003c\/li\u003e\n\u003cli\u003eImplement a bytecode interpreter and run bytecode generated by your compiler\u003c\/li\u003e\n\u003cli\u003eWrite tree traversals that insert information into the syntax tree\u003c\/li\u003e\n\u003cli\u003eImplement garbage collection in your language\u003c\/li\u003e\n\u003c\/ul\u003eWho this book is for\u003cp\u003eThis book is for software developers interested in the idea of inventing their own language or developing a domain-specific language. Computer science students taking compiler construction courses will also find this book highly useful as a practical guide to language implementation to supplement more theoretical textbooks. Intermediate-level knowledge and experience working with a high-level language such as Java or the C++ language are expected to help you get the most out of this book.\u003c\/p\u003eTable of Contents\u003col\u003e\n\u003cli\u003eWhy Build Another Programming Language\u003c\/li\u003e\n\u003cli\u003eProgramming Language Design\u003c\/li\u003e\n\u003cli\u003eScanning Source Code\u003c\/li\u003e\n\u003cli\u003eParsing\u003c\/li\u003e\n\u003cli\u003eSyntax Trees\u003c\/li\u003e\n\u003cli\u003eSymbol Tables\u003c\/li\u003e\n\u003cli\u003eChecking Base Types\u003c\/li\u003e\n\u003cli\u003eChecking Types on Arrays, Method Calls, and Structure Accesses\u003c\/li\u003e\n\u003cli\u003eIntermediate Code Generation\u003c\/li\u003e\n\u003cli\u003eSyntax Cloning in an IDE\u003c\/li\u003e\n\u003cli\u003eBytecode Interpreters\u003c\/li\u003e\n\u003cli\u003eGenerating Bytecode\u003c\/li\u003e\n\u003cli\u003eNative Code Generation\u003c\/li\u003e\n\u003cli\u003eImplementing Operators and Built-In Functions\u003c\/li\u003e\n\u003cli\u003eDomain Control Structures\u003c\/li\u003e\n\u003cli\u003eGarbage Collection\u003c\/li\u003e\n\u003cli\u003eFinal Thoughts\u003c\/li\u003e\n\u003cli\u003eAppendix A - Unicon Essentials\u003c\/li\u003e\n\u003c\/ol\u003e","brand":"Atlantic Books","offers":[{"title":"Paperback","offer_id":46448321134743,"sku":"9781800204805","price":9648.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0666\/3471\/1191\/files\/9781800204805.webp?v=1769143368","url":"https:\/\/atlanticbooks.com\/products\/build-your-own-programming-language-a-programmers-guide-to-designing-compilers-interpreters-and-dsls-for-solving-modern-computing-problems-9781800204805","provider":"Atlantic Books","version":"1.0","type":"link"}