An open API service indexing awesome lists of open source software.

https://github.com/kant2002/webidl-csharp

C# WebIDL parsing library
https://github.com/kant2002/webidl-csharp

webidl

Last synced: over 1 year ago
JSON representation

C# WebIDL parsing library

Awesome Lists containing this project

README

          

# WebIDL parsing library in C#

Small library for parsing of WebIDL files and accessing their data from .NET application

```
using WebIdlCSharp;

var types = WebIdlParser.LoadTypesFromFile("vibration.json");
```

These JSON files could be generated using small NodeJS script from regular WebIDL files.

```
import webidl2 = require("webidl2");
import * as fs from "fs";

const content = fs.readFileSync(fileName);
const parsingStructure = webidl2.parse(content.toString());
fs.writeFileSync(outputFileName, JSON.stringify(parsingStructure, null, 2));

```