Skip to content

Commit

Permalink
Merge pull request #1 from firefly-cpp/main
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
luckyLukac authored Jun 16, 2022
2 parents 4668427 + d591a7a commit 320b33c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Training Description Language (TDL) for Artificial Sport Trainer (AST)
AST-DSL is a very small domain-specific language, used for sport training description.
ast-dsl is intended to be a small DSL for practical definition and description of sports training that can be automatically or manually defined and used in conjunction with Artificial Sport Trainer.

## Installation
$ gem install ast-tdl

## Language description
Training Description Language (TDL) is based on Ruby. It is intended to be used for describing sport trainings that consist of sessions and intervals. Those contain various data, such as duration, average heart rate, sport type and many more.
Training Description Language (TDL) is implemented in Ruby. Currently, the description of sports training sessions and intervals is now supported. Those contain various data, such as duration, average heart rate, sport type, and many more.

## Examples
```ruby
Expand All @@ -22,7 +22,7 @@ EasyTraining = Ast.build :Monday do
info :"Endurance ride with intervals"
average_heart_rate :"140"
total_duration :"250"
}
}

interval("Number 1") {
sport :"swim"
Expand Down Expand Up @@ -50,3 +50,7 @@ This package is distributed under the MIT License. This license can be found onl

## Disclaimer
This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!

## References

Fister Jr, I., Fister, I., Iglesias, A., Galvez, A., Deb, S., & Fister, D. (2021). On deploying the Artificial Sport Trainer into practice. arXiv preprint [arXiv:2109.13334](https://arxiv.org/abs/2109.13334).
7 changes: 4 additions & 3 deletions ast-tdl.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
Gem::Specification.new do |spec|
spec.name = 'ast-tdl'
spec.version = '0.0.2'
spec.license = 'MIT'
spec.authors = %w[firefly-cpp luckyLukac]
spec.email = ['[email protected]', '[email protected]']

spec.summary = 'An experimental and minimalistic Training Description Language for Artificial Sport Trainer'
spec.homepage = 'https://github.com/firefly-cpp/AST-DSL'
spec.homepage = 'https://github.com/firefly-cpp/ast-tdl'
spec.required_ruby_version = '>= 2.6.0'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/firefly-cpp/AST-DSL'
spec.metadata['changelog_uri'] = 'https://github.com/firefly-cpp/AST-DSL'
spec.metadata['source_code_uri'] = 'https://github.com/firefly-cpp/ast-tdl'
spec.metadata['changelog_uri'] = 'https://github.com/firefly-cpp/ast-tdl'

spec.require_paths = ['lib']

Expand Down

0 comments on commit 320b33c

Please sign in to comment.