/tree-sitter-yang

Tree-sitter grammar for YANG

Primary LanguageCApache License 2.0Apache-2.0

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.)