DSL and Parser Combinator

A domain-specific language (DSL) is a special-purpose language designed to express solutions to problems that belong to a particular problem domain. DSLs have an advantage over a general-purpose language such as Scala and Java. Unfortunately, these general-purpose languages have drawbacks. For examp...

Full description

Saved in:
Bibliographic Details
Published inBeginning Scala 3 pp. 237 - 245
Main Authors Layka, Vishal, Pollak, David, Sacco, Andres
Format Book Chapter
LanguageEnglish
Published United States Apress L. P 2022
Apress
Online AccessGet full text

Cover

Loading…
More Information
Summary:A domain-specific language (DSL) is a special-purpose language designed to express solutions to problems that belong to a particular problem domain. DSLs have an advantage over a general-purpose language such as Scala and Java. Unfortunately, these general-purpose languages have drawbacks. For example, if you want to execute a task on a database, then it is necessary to write a computer program to execute this task using a general-purpose language. However, a DSL could be used to perform several such tasks on a database. And this is why some experts regard SQL as a DSL. The scope of this chapter is to introduce you to the world of DSLs and how they interact with Scala.
ISBN:9781484274217
1484274210
DOI:10.1007/978-1-4842-7422-4_10