tree-sitter-cairo

Crates.iotree-sitter-cairo
lib.rstree-sitter-cairo
version0.0.1
sourcesrc
created_at2023-02-10 13:52:14.882318
updated_at2023-02-10 13:52:14.882318
descriptioncairo grammar for the tree-sitter parsing library
homepage
repositoryhttps://github.com/tree-sitter/tree-sitter-cairo
max_upload_size
id781869
size645,677
(JoranHonig)

documentation

README

🌴 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

Commit count: 0

cargo fmt