Compiler

Parse .ato sources into a linked, self-contained TypeGraph.

3.6k|225|Updated Dec 19, 2023
One-click install
npx skills add https://github.com/atopile/atopile --skill compiler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Compiler
Source: https://github.com/atopile/atopile/tree/main/.claude/skills/compiler
Command: npx skills add https://github.com/atopile/atopile --skill compiler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Compiler skill transforms .ato source files into a cohesive TypeGraph, enabling reliable parsing, type inference, and linking for downstream artifacts.

Core Features & Use Cases

  • ANTLR front-end to AST and TypeGraph: Converts .ato scripts into a structured TypeGraph ready for validation and export.
  • Linking and invariants: Applies imports, inheritance order, and retypes to ensure a consistent, self-contained compilation unit.
  • Use Case: Integrate with CLI or LSP to build and verify atopile projects during development.

Quick Start

Start by placing a sample app.ato in your project and run the compiler pipeline to produce a linked TypeGraph; then instantiate the entrypoint through the CLI or LSP.

Frequently Asked Questions about Compiler

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

FAQPage Schema
How do I compile .ato source files into a linked TypeGraph?

To compile .ato source files into a linked TypeGraph, the Compiler skill parses the scripts using an ANTLR front-end to create an AST, then performs typegraph construction and linking to build a self-contained compilation unit.

What is the process for parsing .ato scripts and applying inheritance ordering?

Parsing .ato scripts involves using an ANTLR front-end to generate an AST, followed by typegraph construction and linking that applies imports, inheritance order, and retypes to ensure a consistent compilation unit.

How do I integrate atopile compilation with my CLI or LSP development workflow?

You can integrate atopile compilation with CLI or LSP workflows by running the compiler pipeline to produce a linked TypeGraph and instantiating the entrypoint through the CLI or LSP to build and verify projects during development.

Does the ANTLR front-end support linking and type inference for .ato sources?

Yes, the ANTLR front-end supports linking and type inference for .ato sources by converting the scripts into a structured AST and subsequently building a cohesive, validated TypeGraph for downstream artifacts.

What components are required to build a TypeGraph from .ato sources?

Building a TypeGraph from .ato sources requires the parser, AST builder, TypeGraph utilities, Linker, and DeferredExecutor to handle parsing, typegraph construction, and linking effectively.