FFFF GitHub - giuinktse7/tree-sitter-odin: Odin grammar for tree-sitter · GitHub
[go: up one dir, main page]

Skip to content

About

Odin grammar for tree-sitter

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tree-sitter-odin

CI discord matrix crates npm pypi

Odin grammar for tree-sitter

Odin code navigation

The repository includes an ast-grep integration for structural search and source-accurate symbol navigation. It requires ast-grep 0.44.1 or newer, Odin, and a GCC-compatible C compiler.

./tools/odin-ast/install
./tools/odin-ast/test

The installer compiles the committed generated parser and native odin-ast command, checks the staged installation, then installs it under the current user's config and local-bin directories. Run it again after changing the parser, wrapper, or outline rules. The separate test command uses the development dependencies to regenerate the parser and run the full corpus, Node binding, lint, and navigation test suite.

odin-ast outline path/to/file.odin
odin-ast map path/to/source
odin-ast find Symbol_Name path/to/source
odin-ast show path/to/file.odin Symbol_Name
odin-ast run --pattern '$NAME :: $VALUE' --lang odin path/to/source

map, find, and show include private declarations. find returns every exact item or member match; show refuses missing or ambiguous names rather than selecting one silently. Other subcommands are forwarded to ast-grep with the installed Odin configuration. Set ODIN_AST_GREP, ODIN_AST_CONFIG_DIR, or ODIN_AST_BIN_DIR to override installation/runtime locations; a specific runtime config file can be selected with ODIN_AST_CONFIG.

About

Odin grammar for tree-sitter

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0