#data-flow #style #generator #generate #toml #template #whale

app whale_fall

a code generator based on data flow style

1 stable release

1.0.0 Jan 17, 2024

#78 in Template engine

Apache-2.0

165KB
4.5K SLoC

whale_fall

  • a code generator based on data flow style

name meaning:

  • 一鲸落,万物生(When a whale falls, all things live)

install

  • cargo install whale_fall

config template,default name is whale.toml

[basic]
package = "example"  # project package
root = "../example"  # project root

[[composer]]  # composer array
parsers = ["gm"]  # parser array
processers = ["miman"] # processer array
generators = ["miman"] # generator array
outputers = ["go"] # outputer array

[[composer]]
parsers = ["gm"]
processers = ["miman"]
generators = ["miman"]
outputers = ["go", "md"]

usage

  • cd the project root, config the whale.toml,then execute the command whale_fall generate

Dependencies

~8–19MB
~274K SLoC