Hubro / tree-sitter-yang

Tree-sitter grammar for YANG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tree-sitter parser for YANG 1.1

Tree-sitter parser implementation for YANG, a data modeling language used to model configuration data, state data, Remote Procedure Calls and notifications for network management protocols.

https://datatracker.ietf.org/doc/html/rfc7950

TODO

  • Support quoted keypaths

    Parsing keypaths currently works well, but quoted keypaths are currently parsed as strings.

    It should be possible to parse quoted keypaths by creating a custom statement symbol for the keywords that expect keypaths (like augment, leafref and so on.)

About

Tree-sitter grammar for YANG

License:Apache License 2.0


Languages

Language:C 97.0%Language:JavaScript 2.5%Language:Scheme 0.4%Language:Shell 0.1%