0 رای
وضعیت موجودی موجود

قیمت قبلی: 5,740,000 ریال
قیمت: 5,340,000 ریال

 



Product details

  • Publisher ‏ : ‎ Packt Publishing (December 31, 2021)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 494 pages
  • ISBN-10 ‏ : ‎ 1800204809
  • ISBN-13 ‏ : ‎ 978-1800204805

 

کتاب Build Your Own Programming Language: A programmer's guide to designing compilers, interpreters, and DSLs for solving modern computing problems

 

 

Written 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

Key Features

  • Reduce development time and solve pain points in your application domain by building a custom programming language
  • Learn how to create parsers, code generators, file readers, analyzers, and interpreters
  • Create an alternative to frameworks and libraries to solve domain-specific problems

Book Description

The 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. However, creating a custom language isn't easy.

In this book, you'll be able to put the knowledge you gain to work in language design and implementation. You'll implement 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 (DSL) features are often best represented by operators and functions that are built into the language, rather than library functions. The book concludes by showing you 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, while providing relevant examples in Unicon and Java.

By the end of this book, you'll be able to build and deploy your own domain-specific languages, capable of compiling and running programs.

What you will learn

  • Perform requirements analysis for the new language and design language syntax and semantics
  • Write lexical and context-free grammar rules for common expressions and control structures
  • Develop a scanner that reads source code and generate a parser that checks syntax
  • Build key data structures in a compiler and use your compiler to build a syntax-coloring code editor
  • Implement a bytecode interpreter and run bytecode generated by your compiler
  • Write tree traversals that insert information into the syntax tree
  • Implement garbage collection in your language

Who this book is for

This 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.

Table of Contents

  1. Why Build Another Programming Language
  2. Programming Language Design
  3. Scanning Source Code
  4. Parsing
  5. Syntax Trees
  6. Symbol Tables
  7. Checking Base Types
  8. Checking Types on Arrays, Method Calls, and Structure Accesses
  9. Intermediate Code Generation
  10. Syntax Cloning in an IDE
  11. Bytecode Interpreters
  12. Generating Bytecode
  13. Native Code Generation
  14. Implementing Operators and Built-In Functions
  15. Domain Control Structures
  16. Garbage Collection
  17. Final Thoughts
  18. Appendix A - Unicon Essentials

 

منابع کتاب کتاب Build Your Own Programming Language: A programmer's guide to designing compilers, interpreters, and DSLs for solving modern computing problems

 

این کتاب که توسط خالق زبان برنامه نویسی Unicon نوشته شده است، به شما نشان می دهد که چگونه زبان های برنامه نویسی را برای کاهش زمان و هزینه ایجاد برنامه های کاربردی برای حوزه های جدید یا تخصصی محاسبات پیاده سازی کنید.

ویژگی های کلیدی

  • با ساختن یک زبان برنامه نویسی سفارشی، زمان توسعه را کاهش دهید و نقاط درد را در دامنه برنامه خود حل کنید
  • یاد بگیرید چگونه تجزیه کننده، تولید کننده کد، فایل خوان، تحلیلگر و مفسر ایجاد کنید
  • جایگزینی برای چارچوب ها و کتابخانه ها برای حل مشکلات دامنه خاص ایجاد کنید

توضیحات کتاب

نیاز به انواع مختلف زبان های کامپیوتری به سرعت در حال افزایش است و توسعه دهندگان ترجیح می دهند زبان های دامنه خاص را برای حل مشکلات دامنه برنامه های خاص ایجاد کنند. ساختن زبان برنامه نویسی خود مزایای خود را دارد. این می تواند پادزهر شما برای اندازه و پیچیدگی روزافزون نرم افزار باشد. با این حال، ایجاد یک زبان سفارشی آسان نیست.

در این کتاب، شما قادر خواهید بود دانشی را که به دست می آورید در طراحی و پیاده سازی زبان به کار ببندید. شما بخش مقدماتی یک کامپایلر را برای زبان خود پیاده سازی خواهید کرد، از جمله تحلیلگر واژگانی و تجزیه کننده. این کتاب مجموعه ای از پیمایش درختان نحو را پوشش می دهد که با تولید کد برای یک ماشین مجازی بایت کد به اوج خود می رسد. با حرکت رو به جلو، خواهید آموخت که چگونه ویژگی های زبان خاص دامنه (DSL) اغلب توسط عملگرها و توابعی که در زبان تعبیه شده اند به جای توابع کتابخانه، به بهترین وجه نشان داده می شوند. این کتاب با نشان دادن نحوه اجرای جمع آوری زباله، از جمله شمارش مرجع و جمع آوری زباله علامت گذاری و جارو به پایان می رسد. در سراسر کتاب، دکتر جفری تجربه خود را از ساخت زبان برنامه نویسی یونیکون به کار می گیرد تا زمینه بهتری به مفاهیم بدهد.

در پایان این کتاب، می‌توانید زبان‌های مخصوص دامنه خود را بسازید و به کار بگیرید، که قادر به کامپایل و اجرای برنامه‌ها هستند.

آنچه خواهید آموخت

  • انجام تجزیه و تحلیل الزامات برای زبان جدید و نحو و معنای زبان طراحی
  • قواعد دستور زبان واژگانی و بدون متن را برای عبارات رایج و ساختارهای کنترل بنویسید
  • یک اسکنر بسازید که کد منبع را بخواند و تجزیه کننده ای تولید کند که نحو را بررسی کند
  • ساختارهای داده کلیدی را در یک کامپایلر بسازید و از کامپایلر خود برای ایجاد یک ویرایشگر کد رنگ آمیزی نحوی استفاده کنید.
  • یک مفسر بایت کد را پیاده سازی کنید و بایت کد تولید شده توسط کامپایلر شما را اجرا کنید
  • پیمایش های درختی را بنویسید که اطلاعات را در درخت نحو وارد می کند
  • جمع آوری زباله را به زبان خود پیاده کنید

این کتاب برای چه کسی است

این کتاب برای توسعه دهندگان نرم افزاری است که علاقه مند به اختراع زبان خود یا توسعه یک زبان خاص دامنه هستند. دانشجویان علوم کامپیوتر که دوره‌های ساخت کامپایلر را می‌گذرانند نیز این کتاب را به عنوان راهنمای عملی برای پیاده‌سازی زبان برای تکمیل کتاب‌های درسی تئوری بسیار مفید می‌دانند. انتظار می رود دانش و تجربه سطح متوسط ​​کار با یک زبان سطح بالا مانند جاوا یا زبان C++ به شما کمک کند تا از این کتاب بیشترین بهره را ببرید.

فهرست مطالب

  1. چرا زبان برنامه نویسی دیگری بسازیم؟
  2. طراحی زبان برنامه نویسی
  3. اسکن کد منبع
  4. تجزیه
  5. درختان نحوی
  6. جداول نماد
  7. بررسی انواع پایه
  8. بررسی انواع آرایه‌ها، فراخوانی‌های روش و دسترسی‌های ساختاری
  9. تولید کد میانی
  10. شبیه سازی نحو در یک IDE
  11. مترجمان بایت کد
  12. تولید بایت کد
  13. تولید کد بومی
  14. اجرای اپراتورها و توابع داخلی
  15. ساختارهای کنترل دامنه
  16. مجموعه زباله
  17. افکار نهایی
  18. ضمیمه A - Unicon Essentials

 

نظرات کاربران درباره کتاب Build Your Own Programming Language: A programmer's guide to designing compilers, interpreters, and DSLs for solving modern computing problems

نظری در مورد این محصول توسط کاربران ارسال نگردیده است.
اولین نفری باشید که در مورد کتاب Build Your Own Programming Language: A programmer's guide to designing compilers, interpreters, and DSLs for solving modern computing problems نظر می دهد.

ارسال نظر درباره کتاب Build Your Own Programming Language: A programmer's guide to designing compilers, interpreters, and DSLs for solving modern computing problems

لطفا توجه داشته باشید که ایمیل شما منتشر نخواهد شد.

برچسب های مرتبط با کتاب Build Your Own Programming Language: A programmer's guide to designing compilers, interpreters, and DSLs for solving modern computing problems

Compiler Design Programming Languages خرید اینترنتی کتابهای لاتین خرید اینترنتی کتابهای زبان اصلی کامپیوتر

بر اساس سلیقه شما...

  Product details Publisher ‏ : ‎  Independent ...
2,990,000 ریال
  این کتاب به صورت  رنگی  است. Product details ...
1,200,000 ریال
  Publisher ‏ : ‎  Apress (February 24, 2017) ...
1,440,000 ریال
  Product details Publisher ‏ : ‎  McGraw Hill ...
4,400,000 ریال

codebazan

طراحی و اجرا: فروشگاه ساز سبدخرید