tree-sitter-cairo 0.0.1

cairo grammar for the tree-sitter parsing library
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 647.37 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 982.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JoranHonig

🌴 tree-sitter-cairo

Node.js CI npm version

💡 this grammar is still in development, the structure of the generated AST is not stable

This repository contains a grammar for tree-sitter.

The goal of this project is to provide an efficient low-dependency parser for cairo 1.0 which is designed to enable metaprogramming.

Navigating this repository

The primary file in this repository is grammar.js which describes the tree-sitter grammar.

# Primary file:
grammar.js
# Tests:
/test/**/*

# Auto generated:
/src/**/*
index.js
binding.gyp

References

-> Language Examples https://github.com/starkware-libs/cairo/blob/main/examples

-> Soft language specification https://github.com/starkware-libs/cairo/blob/main/crates/syntax_codegen/src/cairo_spec.rs

-> Cairo pre 1.0 grammar https://github.com/archseer/tree-sitter-cairo