Gain an accelerated introduction to domain-specific languages in R, including coverage of regular expressions. This compact, in-depth book shows you how DSLs are programming languages specialized for a particular purpose, as opposed to general purpose programming languages. Along the way, you’ll learn to specify tasks you want to do in a precise way and achieve programming goals within a domain-specific context.
Domain-Specific Languages in R includes examples of DSLs including large data sets or matrix multiplication; pattern matching DSLs for application in computer vision; and DSLs for continuous time Markov chains and their applications in data science. After reading and using this book, you’ll understand how to write DSLs in R and have skills you can extrapolate to other programming languages.
Those with prior programming experience. R knowledge is helpful but not required.
Chapter 1: Introduction
Chapter 2: Matrix Expressions
Chapter 3: Components of a Programming Language
Chapter 4: Functions, Classes, and Operators
Chapter 5: Parsing and Manipulating Expressions
Chapter 6: Lambda Expressions
Chapter 7: Environments and Expressions
Chapter 8: Tidy Evaluation
Chapter 9: List Comprehension
Chapter 10: Continuous-Time Markov Chains
Chapter 11: Pattern Matching
Chapter 12: Dynamic Programming
Chapter 13: Conclusion