Skip to content

ednet-dev/ednet_code_generation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Categories: ednet_core, model, code generation

Description

Tool which translates the yaml representation of a model designed to DSL.

YAML

The yaml representation model.yaml expressing domain model with DSL must be copied in the project directory.

JSON

The JSON representation model.json expressing domain model with DSL must be copied in the project directory.

Generation

To generate domain model in selected flavor run the script for generation in bin/ednet_core_gen.dart:

  • for single json model.json --genall projectpath domain model, or
  • for multiple models with yaml --genall yamldomainpath output domain model1 model2... modeln

Example

--genall C:/Users/johns/dart/demo_projects demo projects

or

--genall example_domain output ednet user news

By running the main function in the bin/ednet_core_gen.dart file, a project, with its demo domain and projects model, will be generated in the project directory.

Credentials:

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%