Modeling
Modeling is a tools to analysis different languages by Ctags
process:
- analysis
ctags
- generate to opt
- call
ctags
with opt - analysis
ctags
logs by regex
- generate results
- visual result with
visualing
(optional)
language support:
- Java
- C#
- Cpp
- TypeScript
- Golang
- Rust
- ... others by ctags
Usage
- modeling, generate model from source code.
- concepting, generate concepts from source code.
- visualing, visualization the uml.
sample: puml to Image
convert to image: plantuml modeling.puml modeling.svg -tsvg
sample: Grep with MVC
modeling --input=/youpath/ --field-only --without-parent --grep ".*Service|.*Controller|.*Repository"
sample: with Graphviz and Visualization
with --output-type=graphviz
Library
cargo install modeling
modeling .
Library
use ;
use PlantUmlRender;
let classes = by_dir;
let puml = render;
output sample:
@startuml
class Animal {
+ string name
+ string constructor()
+move()
}
class Horse extends Animal {
+move()
}
class Snake extends Animal {
+move()
}
@enduml
License
ctags analysis based on https://github.com/dalance/ptags with MIT, see in src
ctags parser rewrite from Golang's https://github.com/ruben2020/tags2uml with Apache License.
@ 2020~2021 This code is distributed under the MIT license. See LICENSE
in this directory.