Help language development. Donate to The Perl Foundation
This repository provides a Raku package for shared utilities and (grammar) roles for family of packages that translate Domains Specific Languages (DSLs) into executable programming languages code. (Also natural languages.)
Preliminary versions of the code in this repository can be found in the GitHub repository [AAr1].
The initial, "core" packages that use "DSL::Shared" are:
The package "DSL::Bulgarian", [AAp1], extends the English grammar based DSLs by providing Bulgarian language tokens that correspond to the English tokens.
zef install DSL::Shared
zef install https://github.com/antononcube/Raku-DSL-Shared.git
One of the main reason for making this package is to encapsulate and easily share grammar roles for making DSL translators.
Here is a list:
Error handling role
Common English terms and phrases role used in workflows from Machine Learning, Data Science, or Scientific Computing
Predicate specification role
List management commands role
User on-boarding role
Time intervals specifications role
Entity names parsing role
The package provides several different types of utilities for making DSL translators.
Fuzzy matching functions
DSL meta-specifications processing functions
Universal command processing
Resource access class and role
Remark: Initial versions of the Finite State Machine classes were part of this package. Those classes were moved to "DSL::FiniteStateMachines", [AAp9]. Those initial versions are kept here since they are referenced in presentations.
The examples in the directory ./examples show the different roles provided by the package and how they can be utilized in different DSL commands.
[AAp4] Anton Antonov, DSL::English::ClassificationWorkflows, Raku package, (2018-2022), GitHub/antononcube.
[AAp6] Anton Antonov, DSL::English::LatentSemanticAnalysisWorkflows, Raku package, (2018-2022), GitHub/antononcube.
[AAp7] Anton Antonov, DSL::English::QuantileRegressionWorkflows, Raku package, (2018-2022), GitHub/antononcube.