babelute

Internal Domain Specific (Multi)Modeling javascript framework


Keywords
internal-DSL, DSL, domain-specific-language, method-chaining, domain-specific-modeling, model-driven, modeling, semantic, pragmatics, fluent-interface
License
MIT
Install
npm install babelute@0.4.3

Documentation

Babelute.js

42 ≈ [ lexem( lexicon, name, arguments ), ... ]

Internal Domain Specific (Multi)Modeling js framework

Travis branch bitHound Overall Score Coverage Status npm npm-downloads licence dependecies dev-dependencies Conventional Commits

Really small, simple, incredibly powerful and super fast Descriptive Internal DSLs tools.

"A Babelut(t)e is a sort of long toffee flavoured with honey or vergeoise (demerara sugar) from [...] Flanders, Belgium".

Etymology : "[A french word that] is likely to come from the Flemish "babbelen", speaking a lot, and "uit", finished because when you eat the toffee, you cannot speak anymore (either because you are enjoying it or because you cannot open the mouth).[...]" - src : wikipedia

Babelute.js core library (this lib) provides helpers to :

  • define and manage Internal DSLs for modeling any kind of problems
  • with a simple (meta)grammar - based on Method Chaining - for writing structured unambiguous "sentences" (called babelutes)
  • and to provide ways :
    • to manage dictionaries of related lexems (called lexicons) that form DSL semantic fields and their Internal Denotation
    • to translate DSL sentences to other DSL sentences (by example through dedicated bridge-DSLs with their own lexicon(s))
    • to interpret sentences in many context with specific fine grained dedicated implementations (called pragmatics)

Core Libraries

  • babelute (this lib)
  • babelute-uus : Universal Unambiguous Sentences proposal : Welcome in Sharing Era.
  • babelute-ldl : Babelute Lexicon Definition DSL and its generators.

Understanding by examples

First of all, please read Designing a DSL.

Then take a look to existing DSLs.

(work in progress)

Low Level DSLs (Developement related domains) :

  • aright-* : Objects and types validation DSL (ultra-fast, ultra-modular)
  • htsl-* : HTML5 DSL and its render engines. (modern, one of the world's fastest, one-way-binding templating (React philosophy))

High Level DSLs (Human related domains) :

  • babelute-cooking : High Level Cooking DSL demo and its bunch of transformations and DSLs targets. (realease in april 2017)

Theory background and development

(work in progress)

Theorical considerations are exposed here.

Licence

The MIT License

Copyright 2016-2017 (c) Gilles Coomans gilles.coomans@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.