HEADS-project / mraa_hpp2ts_generator

Create a generator for mraa hpp header to create typescript header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hpp2ts (hpp to ts. )

This library automatically creates TypeScript definitions for MRAA (mraa.d.ts), hence providing static typing and safer usage of the MRAA lib, while the execution remains purely in JavaScript. It has been designed as a solution to overcome the lack of support for TypeSript in SWIG (which should come at some point).

Build

Use maven to build, the generated jar include the necessary dependencies

mvn package
java -cp target/hpp2ts-0.0.1.jar eu.heads.project.ts.CPPHeaderScanner /home/barais/git/mraa/api/mraa/ mraa.d.ts #mraa_api_folder destfile.d.ts

Built using https://github.com/ricardojlrufino/cplus-libparser

HEADS

Brought to you by the HEADS project under the GNU LESSER GENERAL PUBLIC LICENSE v2.1

About

Create a generator for mraa hpp header to create typescript header

License:GNU Lesser General Public License v2.1


Languages

Language:Java 100.0%