CSCI 1730 · Fall 2026
9 Final DSL
9.1 What is This Assignment’s Purpose?
You will get experience actually building your own DSL!
9.2 Assignment
Recall what you proposed in DSL Proposal. Your document may have gone through multiple revisions; you should be working off the final version, the one that was actually accepted.
Focus first on getting the core semantics right. Use extensive testing for that purpose. Consider using tools like Lean to formalize (a model of) the language!
Build any checkers and verifiers that the language needs. Recall that you have access to solvers like Z3, the solver that sits underneath Liquid Shplait. It has a whole bunch of Logics, Theories, Strategies, Optimization criteria, and more baked in. You shouldn’t reproduce the wheel poorly; instead, use the tools already on offer!
Then address the user interface components. Make sure you’ve made the underlying language rock-solid (remember the message of this course).
When it comes to syntaxes, we urge you to try to avoid creating ad hoc new syntaxes: they are hard to learn and hard to remember. Racket’s Shrubbery notation gives you a generic syntax on top of which you can build other custom syntaxes. That way you inherit a bunch of tools for free, and some of the syntactic rules (e.g., indentation rules) are already familiar to new users. It’s like the universality of JSON or parenthetical syntax (s-expressions), except less rigid than JSON and more readable (to many) than s-expressions.In fact, Z3’s official syntax, SMT-LIB, is s-expressions. You’ve already seen this deployed several times this semester: languages like Liquid Shplait, as well as the DSL in DSL: Pricing Rules, leverage this syntactic commonality.
That said, if your notation is a visual (or other multi-media) one, then by all means go for it! Create a good interface. But make sure you do so on top of a rock-solid semantics. Otherwise your fancy interface will make it even harder for people to write correct programs and fix mistakes in incorrect ones. You don’t want your language to be one of the bizarre ones in a future mystery languages homework.
In short: by all means attend to human factors, but remember that semantics is also a human factor. Strange and unpredictable semantics make a language just as bad as a poor syntactic interface. But also avoid the urge to create ad hoc textual syntaxes. Only create them if there’s a good reason: e.g., the domain already has a syntax that users would already know and expect.
9.3 AI
We are allowing you to do this using an AI coding agent. You will be given details on how to get access to a commercial account.
Please use this account only for this assignment! You are not authorized to use it in any other courses or for any other purposes.
Do not use the agents in “auto” mode. They can wipe out all of your work (even all of your filesystem) if you are not careful.
But also use this as an opportunity to have fun! Build sophisticated tooling! Go ahead and build a fancy, interactive user interface!
You are not required to use AI. If you have objections to using AI, you are welcome not to.
9.4 What To Hand In
A zip file of your codebase. Ask the AI agent (if you use one) to help you with packaging so that we get something we can build by running make.
A document listing ways in which your final project deviated from what you expected in your DSL Proposal.
A video of your language in action! Your video should absolutely not be longer than ten minutes, though in most cases 3–5 minutes will suffice: don’t feel the need to stretch it out to 10.
Consider starting with an overall demo to set context. Then, use the items asked for in the DSL Proposal template to guide your explanation: e.g., show us errors being made and caught. You should consider having video “chapters” (like a title slide—
just some separator, nothing fancy) that explicitly identify the applicable template items. We are not looking for a fancy video presentation and are not grading you for your video-making skills. However, it is important that the presentation is coherent and understandable. Therefore, please spend a little time editing your video: don’t just dump your very first cut.
We understand that any audio you use in your video may de-anonymize you. That’s okay: you’re all doing different projects, so it’s not really anonymous anyway. If you still want to use only text overlays to avoid revealing your identity, you are welcome to, but if this will take you too long, it’s fine to speak. (If you use a tool to generate close-captioning text, please make sure you proof-read and edit it for correctness!)