Skip to content

Generate Nim wrappers targetting the Bali JavaScript engine for WebIDL files

Notifications You must be signed in to change notification settings

ferus-web/niskriya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

niskriya

Niskriya is a simple program that takes in WebIDL files and "transpiles" them to Nim, but more specifically, in a format that can be paired with the Bali JavaScript Engine to effectively write web-compliant wrappers for APIs that need to be exposed to JavaScript.

It uses webidl2nim's parser and generates Nim code that effectively acts as a wrapper for any JavaScript code. You can then implement the functions as needed.

It is aimed at anyone who wants to use Ferus' stack (more specifically, Bali) to write their own web engine, or anything else related to that, really.

Usage

After compiling Niskriya, you can run:

$ niskriya path/to/file.idl

It will then output the emitted Nim code. Keep in mind that the code is not guaranteed to work 100% of the time, as it isn't directly hooking into the compiler, but rather just primitively emitting Nim code that it hopes will compile.

About

Generate Nim wrappers targetting the Bali JavaScript engine for WebIDL files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages