Kakadu / lablqml

Interfacing Qt/QML with OCaml. Formely known as lablqt
http://kakadu.github.io/lablqml
GNU Lesser General Public License v2.1
159 stars 17 forks source link

Fix mocml generator for QML #11

Closed Kakadu closed 10 years ago

Kakadu commented 12 years ago

We should generate C++ and Ocaml source files for connecting two APIs...

a3s7p commented 12 years ago

Of course. Excuse me for not being active lately, I'm quite busy in RL and will have more free time in a few days. I'm not abandoning anything though, I've been thinking about it! :-)

Kakadu commented 12 years ago

So we have a simple parser for yaml and we should decide what information will be stored in this yaml. Maybe something like that?

 ---
 A:
   signals: 
      click: [unit, unit]
      changeState: [int, unit]
   slots:
     clicked: [unit, unit]
     stateChanged: [int, unit]
   methods:
     show: [unit,unit]
     setParent: [qwidget, unit]
   properties:
     title: [get: getter
             ,set: setter
             ,notify: notifier
            ]
a3s7p commented 12 years ago

Yes, that'll do. I will need to modify the parser a bit, though.

Kakadu commented 12 years ago

https://gist.github.com/1952685 You can finish hacking this code of parser