Skip to content

HEADS-project/mraa_hpp2ts_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages