All student projects

Extracting a Rascal Grammar from the Swift Reference Manual

Grammars are an essential component of many meta programming scenarios, such as static analysis, mass maintenance, and refactoring. In this project the goal is to obtain a high quality Rascal grammar from the Swift language reference, in a (semi-)automatic, traceable way. In particular, we’re interested in the grammar transformation steps needed to go from a “documentation” grammar, to a grammar that can be used for parsing.

Deliverables

  • A prototype tool to extract the Swift grammar
  • An analysis of transformations needed for recovering disambiguation constructs
  • Evaluation by parsing realistic Swift code.

Supervisor(s)

SEARCH Group • University of Groningen • 2024
Some graphics by Font Awesome, Icons8, and Vectors Market.