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

can_not_run
code_lines
d_def_variable
d_get_element
d_runable
daction
dalert
dand
dargument
dbigger
dbigger_eq
dbool
dcall
dclass
dconstant
ddivide
deception
delse_if
dequal
dexpression
dfield
dfloat
dfor_e
dfor_i
dfunc
dgive
dif
dint
djava
dlenght
dlist
dmap
dmethod
dminus
dnew
do_no_support
dor
dpara
dparams
dplus
dprint
dpro
dproblem
dpython
dreplace
dreturn
dsmaller
dsmaller_eq
dstatement
dstr_to_num
dstring
dtimes
dtransform_alert
dtype
dtypes
dunequal
dwarning
dwhile
empty_child_exception
language_tip
language_tips
no_problem
operator
operator_enum
run_engine
run_tip
set_action_as_value_exception
this_is_not_expression
tran_engine
type_error
type_maybe_auto_change
var