DSL::Shared

DSL::Shared provides utilities and grammar roles for making DSL translators.

Raku DSL::Shared

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.

Installation

Zef ecosystem:

zef install DSL::Shared

GitHub :

zef install https://github.com/antononcube/Raku-DSL-Shared.git

Roles to share

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

Utilities to share

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.

Examples

The examples in the directory ./examples show the different roles provided by the package and how they can be utilized in different DSL commands.

References

Packages

[AAp1] Anton Antonov, DSL::Bulgarian Raku package, (2022), GitHub/antononcube.

[AAp2] Anton Antonov, Lingua::NumericWordForms, Raku project (2021-2022), GitHub/antononcube.

[AAp3] Anton Antonov, Grammar::TokenProcessing, Raku project (2022), GitHub/antononcube.

[AAp4] Anton Antonov, DSL::English::ClassificationWorkflows, Raku package, (2018-2022), GitHub/antononcube.

[AAp5] Anton Antonov, DSL::English::DataQueryWorkflows, Raku package, (2020-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.

[AAp8] Anton Antonov, DSL::English::RecommenderWorkflows, Raku package, (2018-2022), GitHub/antononcube.

[AAp9] Anton Antonov, DSL::FiniteStateMachines, Raku package, (2021-2022), GitHub/antononcube.

[NLp1] Nick Logan, Text::Levenshtein::Damerau, Raku project (2016), GitHub/ugexe.

Repositories

[AAr1] Anton Antonov, Conversational Agents at GitHub, (2018-2022), GitHub/antononcube.

DSL::Shared v0.1.0

DSL::Shared provides utilities and grammar roles for making DSL translators.

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

silentlyText::Levenshtein::DamerauLingua::NumericWordFormsHash::Merge

Test Dependencies

Provides

  • DSL::Shared::Actions::Bulgarian::PipelineCommand
  • DSL::Shared::Actions::Bulgarian::Raku::ListManagementCommand
  • DSL::Shared::Actions::Bulgarian::Raku::PipelineCommand
  • DSL::Shared::Actions::Bulgarian::Standard::ListManagementCommand
  • DSL::Shared::Actions::Bulgarian::Standard::PipelineCommand
  • DSL::Shared::Actions::CommonStructures
  • DSL::Shared::Actions::English::Julia::PipelineCommand
  • DSL::Shared::Actions::English::PipelineCommand
  • DSL::Shared::Actions::English::Python::ListManagementCommand
  • DSL::Shared::Actions::English::Python::PipelineCommand
  • DSL::Shared::Actions::English::R::ListManagementCommand
  • DSL::Shared::Actions::English::R::PipelineCommand
  • DSL::Shared::Actions::English::Raku::ListManagementCommand
  • DSL::Shared::Actions::English::Raku::PipelineCommand
  • DSL::Shared::Actions::English::RakuObject::ListManagementCommand
  • DSL::Shared::Actions::English::Standard::ListManagementCommand
  • DSL::Shared::Actions::English::Standard::PipelineCommand
  • DSL::Shared::Actions::English::TimeIntervalSpec
  • DSL::Shared::Actions::English::WL::ListManagementCommand
  • DSL::Shared::Actions::English::WL::PipelineCommand
  • DSL::Shared::Actions::Julia::CommonStructures
  • DSL::Shared::Actions::Julia::PredicateSpecification
  • DSL::Shared::Actions::Python::CommonStructures
  • DSL::Shared::Actions::Python::PredicateSpecification
  • DSL::Shared::Actions::R::CommonStructures
  • DSL::Shared::Actions::R::PredicateSpecification
  • DSL::Shared::Actions::Raku::CommonStructures
  • DSL::Shared::Actions::Raku::PredicateSpecification
  • DSL::Shared::Actions::Russian::Standard::ListManagementCommand
  • DSL::Shared::Actions::Russian::Standard::PipelineCommand
  • DSL::Shared::Actions::Spanish::Standard::ListManagementCommand
  • DSL::Shared::Actions::Spanish::Standard::PipelineCommand
  • DSL::Shared::Actions::WL::CommonStructures
  • DSL::Shared::Actions::WL::PredicateSpecification
  • DSL::Shared::Entity::Actions::Raku::System
  • DSL::Shared::Entity::Actions::WL::System
  • DSL::Shared::Entity::Grammar::EntityNames
  • DSL::Shared::Entity::ResourceAccess
  • DSL::Shared::Entity::ResourceAccessSingleton
  • DSL::Shared::Entity::ResourceAccessish
  • DSL::Shared::FiniteStateMachines::CoreFSM
  • DSL::Shared::Roles::Bulgarian::CommonSpeechParts
  • DSL::Shared::Roles::Bulgarian::ListManagementCommand
  • DSL::Shared::Roles::Bulgarian::PipelineCommand
  • DSL::Shared::Roles::Bulgarian::PredicateSpecification
  • DSL::Shared::Roles::CommonStructures
  • DSL::Shared::Roles::English::CommonParts
  • DSL::Shared::Roles::English::CommonSpeechParts
  • DSL::Shared::Roles::English::GlobalCommand
  • DSL::Shared::Roles::English::ListManagementCommand
  • DSL::Shared::Roles::English::PipelineCommand
  • DSL::Shared::Roles::English::PredicateSpecification
  • DSL::Shared::Roles::English::RudimentaryUserOnboarding
  • DSL::Shared::Roles::English::TimeIntervalSpec
  • DSL::Shared::Roles::ErrorHandling
  • DSL::Shared::Roles::PredicateSpecification
  • DSL::Shared::Utilities::CommandProcessing
  • DSL::Shared::Utilities::DeterminedWordsMatching
  • DSL::Shared::Utilities::FuzzyMatching
  • DSL::Shared::Utilities::MetaSpecsProcessing

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.