dpro 0.3.1 dpro: ^0.3.1 copied to clipboard
A tool to transform programing langrage. it can transform algorithm to Python and Java now. !! it is a lowcode develop engine.
DPro #
what is DPro? #
DPro is a auto programing langrage transfrom tool.
How to use it? #
// choose the programing langrage
TranEngine.tip = LanguageTips.java;
print(TranEngine.tran(
codes: cli.sampleFor(),
));
// prepare logic Objects
CodeLines sampleFor() {
return OCodeLines(objects: [
OForE(
type: DTypes.dStr,
list: OList(
valueType: DTypes.dStr,
values: [OString("a"), OString("b"), OString("c"), OString("d")]),
lines: OCodeLines(objects: [
OPrint(OVar("e")),
]))
]);
}
スポンサー #
how would we create the engine from zero #
- lines
- types
- def
- def give
- give
- const value
- const list
- const map
- list.get
- map.get
- var
- ouput(print)
- calculate
- if
- else
- fori
- fori_simply
- fore
- while
- func
- class
- extend
TODO:
- let it can run!
- modules!
- UI designer!