dpro 0.5.1 copy "dpro: ^0.5.1" to clipboard
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.

badge pub package

DPro #

English|Japanese

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);
}

スポンサー #

twitter

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#
1
likes
110
pub points
0%
popularity

Publisher

unverified uploader

A tool to transform programing langrage. it can transform algorithm to Python and Java now. !! it is a lowcode develop engine.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

path, sprintf

More

Packages that depend on dpro