توضیحاتی در مورد کتاب :
با زبان برنامه نویسی Perl 6 ریجکس ها و تجزیه کننده های خوبی بنویسید. خواهید دید که چگونه Regexe ها برای جستجو، تجزیه و اعتبارسنجی استفاده می شوند: به ویژه پسوند دستور زبان آنها را به طور منحصر به فردی برای تجزیه مناسب می کند، تمرکز اصلی این کتاب. نوشته شده توسط کارشناس Perl 6، موریتز لنز، یکی از مشارکت کنندگان اصلی Rakudo، تجزیه و تحلیل با Perl 6 Regexes و Grammar ها از اصول اولیه عبارات منظم شروع می شود و سپس چگونگی ادغام آنها با کد پرل 6 معمولی را بررسی می کند. سپس کاوش عمیقتری در مورد نحوه عملکرد رجکسها و بحث در مورد تکنیکهای رایج برای ساخت رجکسها و کاوش در دادههای تحت بررسی دنبال میشود. مطالب بعدی فراتر از قالبهای نسبتا ساده میرود و به regexes و گرامرهای نامگذاری شده قابل استفاده مجدد میرود، که امکان استفاده مجدد از کد در گرامرها را فراهم میکند و نحوه نوشتن تجزیهکنندهها را برای قالبهای دادهای درگیرتر نشان میدهد. گزارش خطا و مطالعات موردی موضوع را کامل می کند.
در حالی که رجکسها به شما امکان میدهند الگوها را در متن جستجو کنید و ورودیها را تأیید کنید، رجکسهای Perl 6 این مفهوم را ارتقا میدهند: خواهید دید که خواندن آنها آسانتر و در عین حال بسیار قدرتمندتر از «عبارت منظم سازگار با Perl» سنتی است. با بهبود قابلیت استفاده مجدد و کنترل عقبگرد، می توانید تجزیه کننده های کامل را با کمک این کتاب بنویسید.
آنچه شما یاد خواهید گرفت
بلوک های سازنده رجکس های پرل 6 را کشف کنید
به مکانیک regex رسیدگی کنید و بر تکنیک های مفید regex مسلط شوید
استخراج داده ها و کار با الگوها در میان این موارد استفاده
از regexeهای نامگذاری شده و سایر گرامرها به عنوان مؤلفه یا الگو استفاده مجدد کنید
تجزیه کننده های کامل، از جمله گزارش خطای پیشرفته و استخراج داده ها را بنویسید
با نحوه تجزیه دامنه های تو در تو و قالب های مبتنی بر تورفتگی آشنا شوید
این کتاب برای چه کسی است
کسانی که حداقل تجربه قبلی با برنامه نویسی پرل دارند، اما ممکن است در پرل 6 و همچنین جستجو و تجزیه تازه کار باشند.
موریتز لنز یک مهندس نرم افزار و معمار است. در جامعه پرل، او به دلیل مشارکت هایش در زبان برنامه نویسی Perl 6، کامپایلر Rakudo Perl 6، مجموعه تست مرتبط، زیرساخت ها و ابزارها شناخته شده است. او در کارفرمایش، شبکه noris AG، تحویل مستمر را برای بسیاری از برنامههای کاربردی توسعهیافته داخلی معرفی کرد و اکنون میخواهد تجربه خود را با جهان گستردهتر به اشتراک بگذارد.
توضیحاتی در مورد کتاب به زبان اصلی :
Write good regexes and parsers with the Perl 6 programming language. You’ll see how regexes are used for searching, parsing, and validation: in particular the grammar extension makes them uniquely suitable for parsing, the main focus of this book. Written by Perl 6 expert Moritz Lenz, a core contributor of Rakudo, Parsing with Perl 6 Regexes and Grammars starts from the very basics of regular expressions, and then explores how they integrate with regular Perl 6 code. Then follows a deeper exploration of how regexes work under the hood and a discussion of common techniques for constructing regexes and exploring the data under scrutiny. Later material goes beyond relatively simple formats to reusable named regexes and grammars, which permit code reuse in grammars, and shows how to write parsers for more involved data formats. Error reporting and case studies wrap up the topic.
While regexes allow you to search for patterns in text and validate input, Perl 6 regexes advance that concept: you’ll see how they are easier to read, yet much more powerful, than the traditional "Perl-compatible regular expression". With improved reusability and backtracking control, you will be able to write complete parsers with the help of this book.
What You'll Learn
Discover the building blocks of Perl 6 regexes
Handle regex mechanics and master useful regex techniques
Extract data and work with patterns among these use cases
Reuse named regexes and other grammars as components or templates
Write full parsers, including advanced error reporting and data extraction
Learn how to parse nested scopes and indention-based formats
Who This Book Is For
Those with at least some prior experience with Perl programming, but who may be new to Perl 6 as well as searching and parsing.
Moritz Lenz is a software engineer and architect. In the Perl community, he is well known for his contributions to the Perl 6 programming language, the Rakudo Perl 6 compiler, related test suite, infrastructure and tools. At his employer, noris network AG, he introduced continuous delivery for many in-house developed applications, and now wants to share his experience with the wider world.