Skip to main content

Combined

rascal-0.34.0

Synopsis

Combine concrete syntax with abstract syntax.

Description

Concrete syntax gives full control over the textual appearance of a language and leads to parse trees in a standard format (i.e., values of type Tree).

Abstract syntax can be designed by the Rascal programmer according to his/her needs regarding the type checking, code generation, transformation, or optimization to be done on the abstract syntax trees.

How can we bridge this gap? We discuss two approaches:

  • Manual: A transformation is written manually to convert parse trees to abstract syntax trees.
  • Automatic: The library function Implode is used to automate this transformation.