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#

Libraries

core/alert/transform/can_not_run
core/code_lines
core/func/give/d_def_variable
core/func/value/iterator/d_get_element
core/d_runable
core/func/daction
core/alert/dalert
core/func/value/operator/logical_operator/dand
core/func/class/method/dargument
core/func/value/operator/comparison_operator/dbigger
core/func/value/operator/comparison_operator/dbigger_eq
core/func/value/constant/dbool
core/func/branch/function/dcall
core/func/class/dclass
core/func/value/constant/dconstant
core/func/value/operator/num_operator/ddivide
core/alert/error/deception
core/func/branch/if/delse_if
core/func/value/operator/comparison_operator/dequal
core/func/value/dexpression
core/func/class/dfield
core/func/value/constant/dfloat
core/func/branch/loop/dfor_e
core/func/branch/loop/dfor_i
core/func/branch/function/dfunc
core/func/give/dgive
core/func/branch/if/dif
core/func/value/constant/dint
tran/lang_tips/djava
core/func/value/iterator/dlenght
core/func/value/iterator/dlist
core/func/value/iterator/dmap
core/func/class/method/dmethod
core/func/value/operator/num_operator/dminus
core/func/class/dnew
core/alert/transform/do_no_support
core/func/value/operator/logical_operator/dor
core/func/branch/function/dpara
core/func/branch/function/dparams
core/func/value/operator/num_operator/dplus
core/func/output/dprint
dpro
core/alert/problem/dproblem
tran/lang_tips/dpython
core/func/value/iterator/dreplace
core/func/branch/function/dreturn
core/func/value/operator/comparison_operator/dsmaller
core/func/value/operator/comparison_operator/dsmaller_eq
core/dstatement
core/func/tools/string_tool/dstr_to_num
core/func/value/constant/dstring
core/func/value/operator/num_operator/dtimes
core/alert/transform/dtransform_alert
core/type/dtype
core/type/dtypes
core/func/value/operator/comparison_operator/dunequal
core/alert/warning/dwarning
core/func/branch/loop/dwhile
core/alert/error/empty_child_exception
tran/lang_tips/language_tip
tran/language_tips
core/alert/transform/no_problem
core/func/value/operator/operator
core/func/value/operator/operator_enum
run/run_engine
run/run_tip
core/alert/error/set_action_as_value_exception
core/alert/error/this_is_not_expression
tran/tran_engine
core/alert/type_alert/type_error
core/alert/type_alert/type_maybe_auto_change
core/func/var