Skip to content

jido/Dodo.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is an attempt to adapt the dodo object model to Javascript

Dodo home: http://dodo.sourceforge.net

Translation table:

             Dodo                |            Javascript
_________________________________|________________________________
                                 |
 struct                          | struct
                                 |
 self                            | this
                                 |
 new var0(x: 1)                  | copy(var0, {x: 1})
                                 |
 new var0 {def z = 36}           | extend(var0, {z: 36})
                                 |
 ^func                           | $func
                                 |
 class A {def col="blue"}        | var A = Create(class, "A", {col: "blue"});
                                 |
 class B {B(n) {print(n)}}       | var B = Create(class, "B", {$init: function(n) {print(n);}
                                 |    });
                                 |
 def C = new A {def p = 0}       | var C = Create(A.instance, "C", {p: 0});
                                 |
 B(1000)                         | B(1000)
                                 |

About

An adaptation of the dodo object model to Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published