A general-purpose language is a computer language that is broadly applicable across application domains, and lacks specialized features for a particular domain. This is in contrast to a domain-specific language (DSL), which is specialized to a particular application domain. The line is not always sharp, as a language may have specialized features for a particular domain but be applicable more broadly, or conversely may in principle be capable of broad application but in practice used primarily for a specific domain.
General-purpose languages are further subdivided by the kind of language, and include:
- General-purpose markup languages, such as XML
- General-purpose modeling language such as the Unified Modeling Language (UML)
- General-purpose programming languages, such as C, Java, PHP, or Python
- "Definition of general-purpose language". PCMag. Retrieved April 6, 2020.
A programming language that is used to solve a wide variety of problems. Languages such as C, C++ and Java are examples. Contrast with special-purpose language. See general purpose.
- John Ousterhout (2008). "Markup Languages: XML, HTML, XHTML". stanford.edu. Retrieved April 6, 2020.
- Mallet, Frédéric (2008). "Clock constraint specification language: specifying clock constraints with UML/MARTE" (PDF). Innovations in Systems and Software Engineering. 4 (3): 309–314. doi:10.1007/s11334-008-0055-2. S2CID 10895550.
- "Programming Languages Through the Years". The Software Guild. July 30, 2015. Retrieved April 6, 2020.
- Hicks, Mike; Levin, Dave. "CMSC 330: Organization of Programming Languages" (PDF). cs.umd.edu. Retrieved April 6, 2020.