• Home
  • Search
  • Domain-specific language integration with compile-time parser generator library
  • Cite Icon1
  • https://doi.org/10.1145/1942788.1868315Copy DOI Icon

Domain-specific language integration with compile-time parser generator library

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Smooth integration of domain-specific languages into a general purpose host language requires absorbing of domain code written in arbitrary syntax. The integration should cause minimal syntactical and semantic overhead and introduce minimal dependency on external tools. In this paper we discuss a DSL integration technique for the C++ programming language. The solution is based on compile-time parsing of the DSL code. The parser generator is a C++ template metaprogram reimplementation of a runtime Haskell parser generator library. The full parsing phase is executed when the host program is compiled. The library uses only standard C++ language features, thus our solution is highly portable. As a demonstration of the power of this approach, we present a highly efficient and type-safe version of printf and the way it can be constructed using our library. Despite the well known syntactical difficulties of C++ template metaprograms, building embedded languages using our library leads to self-documenting C++ source code.

Similar Papers
  • Conference Article
  • Citations1

OptiSDR — A domain specific language to improve developer productivity for software defined radio

  • Aug 01, 2016
  • Simon Winberg +2
  • Conference Article
  • Citations1

LanguageGame - an interactive parser generator

  • Aug 18, 2003
  • T Yamamiya
  • Conference Article
  • Citations4

Domain Specific Language (DSL) development for desktop-based database application generator

  • Jul 01, 2011
  • Steven Lolong +1
  • Conference Article
  • Citations182

Plenary talk III Domain-specific languages

  • Nov 01, 2008
  • Walid Taha
  • Conference Article
  • Citations7

Task-Specific Programming Languages for Promoting Computing Integration

  • Nov 21, 2019
  • Mark Guzdial +1
  • Book Chapter
  • Citations5

Prototyping Domain Specific Languages as Extensions of a General Purpose Language

  • Jan 01, 2013
  • Andreas Blunk +1
  • Conference Article
  • Citations1

Demonstrating programming language feature mining using Boa

  • Oct 25, 2015
  • Robert Dyer +3
  • Conference Article
  • Citations40

ExaSlang: A Domain-Specific Language for Highly Scalable Multigrid Solvers

  • Nov 01, 2014
  • Christian Schmitt +4
  • Book Chapter

Ontology-Supported Design of Domain-Specific Languages

  • Jan 01, 2014
  • Computational Linguistics
  • István Dávid +1
  • Conference Article
  • Citations2

ReL: A Generic Refactoring Language for Specification and Execution

  • Aug 01, 2011
  • Thomas Ruhroth +2
  • Research Article
  • Citations15

Self-Assessment Procedure XXIII

  • May 01, 1995
  • Communications of the ACM
  • Mitchell H Clifton
  • Conference Article
  • Citations3

Refactoring Generics in JAVA: A Case Study on Extract Method

  • Mar 01, 2010
  • RaúL Marticorena +3
  • Research Article
  • Citations39

Cross-Language Interoperability in a Multi-Language Runtime

  • May 28, 2018
  • ACM Transactions on Programming Languages and Systems
  • Matthias Grimmer +5
  • PDF
  • Research Article
  • Citations16

Language and Obfuscation Oblivious Source Code Authorship Attribution

  • Jan 01, 2020
  • IEEE Access
  • Sarim Zafar +3
  • Book Chapter

MDA, Metamodeling and Transformation

  • Jan 01, 2010
  • Liliana María Favre
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.