Operator Overloading as a DSL Parsing Mechanism
Keyword(s):
Run Time
◽
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
◽
Keyword(s):
2021 ◽
2010 ◽
Vol 7
(2)
◽
pp. 247-264
◽
Keyword(s):
Keyword(s):