Operator Overloading as a DSL Parsing Mechanism

Author(s):  
Alberto Simões ◽  
Rui Miguel da Costa Meira

This chapter describes an approach for the implementation of embedded domain-specific languages by using operator overloads and the creation of abstract syntax trees in run-time. Using the host language parser, an AST is created stating the structure of the DSL expression that is later analyzed, simplified, and optimized before the evaluation step. For the illustration of this process, the chapter proposes a domain-specific language for a basic linear algebra system dealing with matrices algebra and its optimization.

1999 ◽  
Vol 9 (5) ◽  
pp. 483-525 ◽  
Author(s):  
PETER THIEMANN

We present a general method to transform a compositional specification of a specializer for a functional programming language into a set of combinators that can be used to perform the same specialization more efficiently. The main transformation steps are the transition to higher-order abstract syntax and untagging. All transformation steps are proved correct. The resulting combinators can be implemented in any functional language, typed or untyped, pure or impure. They may also be considered as forming a domain-specific language for meta-programming. We demonstrate the generality of the method by applying it to several specializers of increasing strength. We demonstrate its efficiency by comparing it with a traditional specialization system based on self-application.


2019 ◽  
Vol 5 (1) ◽  
pp. 32-69 ◽  
Author(s):  
Esra’ M. Abdelzaher

This study adopts a lexicon-based approach to address violence on social media. It uses FrameNet 1.7 (fn) and WordNet 3.1 (wn) to build a hierarchical domain-specific language resource of violence. The proposed lexicon tethers fn’s innovative integration of linguistic and paralinguistic knowledge to wn’s hierarchically-organized database. This tether alleviates the need to gather all paralinguistic violence-associated scenes and organize their linguistic realizations hierarchically. The proposed methodology can be internationally applied, given the multilingual availability of fn and wn, to cognitively and quantitatively explore a concept or a phenomenon. The lexicon is applied, then, to a corpus representing posts and comments retrieved from Donald Trump’s Facebook public page. Results reveal that the proposed lexicon recalls 92.68 of the total violence-related words in the corpus with a 76.31 precision (F-score= 83.7). More important, relating wn to fn inspires the creation of new frames, suggests slight modifications to existing ones and advocates promising mapping between some frames and synsets.


Author(s):  
Akif Quddus Khan

This paper aims to provide an overview of the complete process in the development of a Domain-Specific Language (DSL). It explains the construction steps such as preliminary research, language implementation, and evaluation. Moreover, it provides details for different key components which are commonly found in the DSLs such as the abstraction layer, DSL metamodel, and the applications. It also explains the general limitations related to the Domain-Specific Languages for Workflows.


2010 ◽  
Vol 7 (2) ◽  
pp. 247-264 ◽  
Author(s):  
Tomaz Kosar ◽  
Nuno Oliveira ◽  
Marjan Mernik ◽  
Varanda Pereira ◽  
Matej Crepinsek ◽  
...  

Many domain-specific languages, that try to bring feasible alternatives for existing solutions while simplifying programming work, have come up in recent years. Although, these little languages seem to be easy to use, there is an open issue whether they bring advantages in comparison to the application libraries, which are the most commonly used implementation approach. In this work, we present an experiment, which was carried out to compare such a domain-specific language with a comparable application library. The experiment was conducted with 36 programmers, who have answered a questionnaire on both implementation approaches. The questionnaire is more than 100 pages long. For a domain-specific language and the application library, the same problem domain has been used - construction of graphical user interfaces. In terms of a domain-specific language, XAML has been used and C# Forms for the application library. A cognitive dimension framework has been used for a comparison between XAML and C# Forms.


Author(s):  
Jessica Ray ◽  
Ajav Brahmakshatriya ◽  
Richard Wang ◽  
Shoaib Kamil ◽  
Albert Reuther ◽  
...  

Sign in / Sign up

Export Citation Format

Share Document