community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

One Parser, Six Tools

A tree-sitter-based AL parser enables multiple developer tools including code navigation, structural search, LLM training data extraction, AI-powered code understanding, and editor support. The parser achieves 100% accuracy on 15,358 production files and serves as a foundation for building code analysis and development tools.

post SShadowS

Torben Leth · 2026-03-27 · 775 words · about 4 min

"tree-sitter-al parses AL, the language behind Business Central. I got it to 100% on 15,358 production files. Zero errors."

Key points

  • tree-sitter-al parses AL with zero errors on all tested production files and is published on crates.io
  • The parser powers six tools: GitHub code navigation, ast-grep structural search, al-corpus training data extraction, code-graph-rag knowledge graphs, editor integrations, and an interactive WASM playground
  • Editors like Neovim, Helix, and Zed can use the parser’s query files for syntax highlighting, scope-aware highlighting, symbol navigation, code folding, and auto-indentation
  • ast-grep enables zero-false-positive structural pattern matching across codebases, such as finding all obsolete properties
  • The parser is MIT-licensed and available for developers to build custom tools

Quotes

  • “tree-sitter-al parses AL, the language behind Business Central. I got it to 100% on 15,358 production files. Zero errors.” (Demonstrates the parser’s production-grade reliability and completeness, validating it as a foundation for multiple tools)
  • “Every tool on this list runs on the same parse tree. I built the parser because no one else had.” (Shows how a single, well-built parser enables multiple downstream applications and tools for AL development)
  • “The parser is MIT-licensed: github.com/SShadowS/tree-sitter-al.” (Clarifies the licensing and availability, making it clear the tool is open for community use and extension)

Context

  • Features: GitHub code navigation, ast-grep structural search, al-corpus training data extraction, code-graph-rag knowledge graphs, Editor support (Neovim, Helix, Zed), Interactive WASM playground, Symbol navigation, Code folding

Source: SShadowS, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.