Craft domain-specific languages that empower experts to create software themselves.
Domain-specific languages put business experts at the heart of software development. These purpose-built tools let your clients write down their business knowledge and have it automatically translated into working software—no dev time required. They seamlessly bridge the knowledge gap between programmers and subject experts, enabling better communication and freeing you from time-consuming code adjustments.
Inside Building User-Friendly DSLs you’ll learn how to:
• Build a complete Domain IDE for a car rental company
• Implement a projectional editor for your DSL
• Implement content assist, type systems, expressions, and versioning language aspects
• Evaluate business rules
• Work with Abstract Syntax Trees
• Reduce notated DSL content in concrete syntax into abstract syntax
Building User-Friendly DSLs takes you on a carefully-planned journey through everything you need to create your own DSLs. It focuses on building DSLs that are easy for busy business experts to learn and master. By working through a detailed example of a car rental company, you'll see how to create a custom DSL with a modern and intuitive UI that can replace tedious coding activities.
About the technology
Here’s the central problem of software development: business users know what they need their apps to do, but they don’t know how to write the code themselves. As a developer, this means you spend a lot of time learning the same domain-specific details your user already knows. Now there’s a way to bridge this gap! You can create a Domain-Specific Language (DSL) that empowers non-technical business users to create and customize their own applications without writing any code.
About the book
Building User-Friendly DSLs teaches you how to create a complete domain-specific language that looks and works like a web application. These easy-to-use DSLs put the power to create custom software into the hands of business domain experts. As you go, you’ll cover all the essentials, from establishing structure and syntax of your DSL to implementing a user-friendly interface.
What's inside
• Implement a projectional editor for your DSL
• Work with Abstract Syntax Trees
• Evaluate business rules
About the reader
For developers with JavaScript and web development experience.
About the author
Meinte Boersma is a senior developer and an evangelist of model-driven software development and DSLs.
Table of Contents
1 What is a domain-specific language?
2 Representing DSL content as structured data
3 Working with ASTs in code
4 Projecting the AST
5 Editing values in the projection
6 Editing objects in the projection
7 Implementing persistence and transportation of ASTs
8 Generating code from the AST
9 Preventing things from blowing up
10 Managing change
11 Implementing expressions: Binary operations
12 Implementing expressions: Order of operations
13 Implementing a type system
14 Implementing business rules
15 Some topics we didn’t cover

- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Building User-Friendly DSLs
About this book
Trusted by 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Subtopic
Programming in JavaScriptIndex
Computer ScienceTable of contents
- Building User-Friendly DSLs
- copyright
- contents
- dedication
- foreword
- preface
- acknowledgments
- about this book
- about the author
- about the cover illustration
- 1 What is a domain-specific language?
- 2 Representing DSL content as structured data
- 3 Working with ASTs in code
- 4 Projecting the AST
- 5 Editing values in the projection
- 6 Editing objects in the projection
- 7 Implementing persistence and transportation of ASTs
- 8 Generating code from the AST
- 9 Preventing things from blowing up
- 10 Managing change
- 11 Implementing expressions: Binary operations
- 12 Implementing expressions: Order of operations
- 13 Implementing a type system
- 14 Implementing business rules
- 15 Some topics we didn’t cover
- appendix A Setting up the development environment
- appendix B Implementing a Transparent Functional Reactive frontend
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Building User-Friendly DSLs by Meinte Boersma in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.