Skip to content

About

Parse Android AIDL into typed structural data using the official AOSP grammar and WebAssembly. Works in Node.js and browsers.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

aidl-parser

Parse Android 17 AIDL into typed structural data using the official AOSP grammar and WebAssembly. Works in Node.js and browsers.

Try it online: AIDL Structure Lab.

Usage

import { parseAidl } from "aidl-parser";

const result = parseAidl("interface IService { String getName(int id); }");
console.log(result.document, result.diagnostics);

The ESM import initializes WebAssembly; subsequent parsing calls are synchronous. Results include declarations, members, types, annotations, source locations and syntax diagnostics. The parser does not resolve imports, check types or generate code.

Documentation

Licensed under Apache-2.0. The npm package includes third-party notices in dist/licenses/.

About

Parse Android AIDL into typed structural data using the official AOSP grammar and WebAssembly. Works in Node.js and browsers.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages