dpro 0.5.1 dpro: ^0.5.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")),
]))
]);
}
// output java code:
for (String e : new ArrayList<String>(Arrays.asList("a", "b", "c", "d"))) {
Log.d("log",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:
- export to json and import with json
- let it can run code objects!
- modules!
- UI designer!
Future Support Languages:
- Object Oriented
- Type Script
- Java
- Python
- Swift
- Dart
- C#
- GoLang
- Only Runable
- C
- machine language
- Functional
- Haskell
- OCaml
- F#