AntonAntonov/
DSLExamples
(1.0.0)
current version: 1.0.2 »
DSL examples suitable for LLM few-shot training
Contributed by: Anton Antonov
Domain Specific Language (DSL) examples of translations of natural language commands into code for different programming languages and packages.
Installation Instructions
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["AntonAntonov/DSLExamples"]
To load the code after installation, evaluate this code:
Needs["AntonAntonov`DSLExamples`"]
Details
The Domain Specific Language (DSL) examples of the paclet can be used for few-shot training of Large Language Models (LLMs).
Another application is making tests or verifying translations of natural language commands into code.
The DSL examples are for packages written in the programming languages Python, R, Raku, and Wolfram Language.
Examples
Basic Examples (2)
Show a few of the examples for the Latent Semantic Analysis (LSA) software monad written in Wolfram Language (WL):
Here is a function that makes a few-shot training LLM function for given programming language and workflow name:
Here is a list of natural language commands specifying an LSA workflow:
Translate those commands -- line by line -- into of a monadic pipeline for the paclet "AntonAntonov/MonadicLatentSemanticAnalysis":
Instead of translating the commands line-by-line do an en bloc translation:
Scope (4)
Show the programming languages and software packages that have DSL examples:
Here are retrieved all of the R-language DSL examples:
Here are retrieved the examples for the "SMRMon" workflow in all programming languages:
Show all DSL examples as a dataset:
Publisher
Anton Antonov
External Links
Version History
-
1.0.2
– 08 January 2026
-
1.0.1
– 08 January 2026
-
1.0.0
– 05 November 2025
MIT License
Paclet Source
See Also