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.
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.
- API and scope
- Local development and build commands
- Architecture
- Performance and profiling
- Website deployment
Licensed under Apache-2.0. The npm package includes third-party notices in dist/licenses/.