Compiler API

Document compiler API bindings for AST, values, and type systems.

28|2|Updated Dec 24, 2023
One-click install
npx skills add https://github.com/chemicallang/chemical --skill compiler-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Compiler API
Source: https://github.com/chemicallang/chemical/tree/main/.agents/skills/compiler_api
Command: npx skills add https://github.com/chemicallang/chemical --skill compiler-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralized documentation for the compiler's API and the compiler bindings library located in lang/libs/compiler, enabling developers to quickly discover core interfaces and usage patterns.

Core Features & Use Cases

  • API reference for core components such as ASTNode, Value, and BaseType.
  • Bindings library access to build tooling, language servers, and integrations with other tools.
  • Use Case: implement tooling that inspects the AST and emits diagnostics using the compiler bindings.

Quick Start

Open the Compiler API docs to locate ASTNode, Value, and BaseType definitions and begin integrating the bindings library.

Frequently Asked Questions about Compiler API

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access the compiler API for AST and type system bindings?

To inspect the AST and emit diagnostics, use the compiler bindings library to access ASTNode definitions. This approach enables you to build custom tooling, language servers, and integrations that programmatically analyze and interact with the compiler's internal structures.

What is the compiler bindings library used for in language tooling?

The compiler bindings library provides centralized API documentation and access to core components like ASTNode, Value, and BaseType. It enables you to build language tooling, inspect the AST, and emit diagnostics with deterministic bindings across the toolchain.

How do I get started with the compiler API to build tooling?

Open the Compiler API documentation to locate ASTNode, Value, and BaseType definitions. Begin integrating the bindings library to build tooling, language servers, or other integrations that inspect the AST and emit diagnostics.

Can I use the compiler API to build a language server?

Yes, you can use the compiler bindings library to build language servers. The compiler API exposes core interfaces for AST and type system access, enabling deterministic bindings and type-safe interactions for language integration and tool development.

Does the compiler API support type-safe interactions for language integration?

Yes, the compiler API supports type-safe interactions. The bindings library provides deterministic access to AST values and the type system, ensuring clear and type-safe API access for internal tooling and language integration.