Unibeautify / sparser

A framework of various language parsers
Other
93 stars 5 forks source link

Yang - new language #71

Open prettydiff opened 5 years ago

prettydiff commented 5 years ago

https://tools.ietf.org/html/rfc6020

A knowledge modeling language that compiles to XML, but can be parsed with the style lexer.

prettydiff commented 5 years ago
 list user {
     key "name";
     leaf name {
         type string;
     }
     leaf full-name {
         type string;
     }
     leaf class {
         type string;
     }
 }