Abstract
dc:description.abstractDomain-specific languages (DSLs) make program synthesis possible in practice by restricting the otherwise large space of general-purpose programs to constructs relevant to a target domain. How- ever, designing a DSL’s grammar and implementing its primitive semantics by hand requires sub- stantial human effort and domain expertise. We propose a pipeline that automates this process using large language models (LLMs). The pipeline iteratively generates a context-free grammar (CFG) for the DSL, implements the grammar’s terminal functions using FunSearch guided by au- tomatically generated test cases, and attempts to synthesize programs that solve the domain’s tasks. When tasks remain unsolved, the DSL is evolved and the process repeats. We evaluate this pipeline on the Craft domain, extending the original environment to support deterministic, specification-driven scenario generation for structured testing. Our best pipeline run solves all 20 tasks, against 17 for the strongest run of a baseline that synthesizes Python functions directly with FunSearch, without a DSL, suggesting that the structure imposed by a learned DSL can improve program synthesis performance. Averaged over runs, however, the two conditions are not statisti- cally distinguishable, so this advantage is concentrated in the pipeline’s strongest runs. We further show that DSL evolution can substantially improve performance, though this improvement is not guaranteed across all runs.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- Master's
- Grantor
- University of Alberta
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Tiwari, Avani
- Advisors dc:contributor.advisor
-
- Lelis, Levi (Computing Science)
- Chen, Jocelyn (Computing Science)
Subjects
dc:subject × 2Rights
dc:rights- Statement dc:rights
-
- This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
- Licence dc:rights.uri
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- DOI dc:identifier.doi
- https://doi.org/10.7939/85866