YANG

1 program Added 2026-03-12T11:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Yet Another Next Generation
Provenance: commit 0cf8280cea · authored 2026-03-12T00:28:28+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

5 sources · pl_id: pl/yang
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglot

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.yanglinguistprimary218.8K files
.yangpygmentsprimary218.8K files

Related languages

NGS (0.33)YAP (0.30)YAP Prolog (0.30)Yab (0.29)Yash (0.29)

LLM-contributed programs

System Configuration Module

Provenance: commit 0cf8280cea · authored 2026-03-12T00:28:28+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.yang · license: Public Domain · added: 2026-03-12T11:00:00Z
module acme-system {
  namespace "http://acme.example.com/system";
  prefix "acme";

  organization "ACME Systems, Inc.";
  description
    "Example YANG module for a system configuration.";

  revision 2007-11-05 {
    description "Initial version.";
  }

  container system {
    leaf host-name {
      type string;
      description "Hostname for this system.";
    }

    leaf-list domain-search {
      type string;
      description "List of domain names to search.";
    }

    container login {
      leaf message {
        type string;
        description "Message given at start of login session.";
      }

      list user {
        key "name";

        leaf name {
          type string;
        }

        leaf full-name {
          type string;
        }

        leaf class {
          type string;
        }
      }
    }
  }
}

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
sub-mod-types.yang · 127 B · ext .yang · seen 31× in SWH
via unique-primary
swh:1:cnt:e0ac251e7a70bfbab4af14c8875d443cd71eda24;origin=https://github.com/sysrepo/sysrepo;anchor=swh:1:rev:d0615496441f18577c8fedcbebab381e26db0c75;path=/tests/files/sub-mod-types.yang
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
module sub-mod-types {
    namespace "urn:sub-mod-types";
    prefix smt;

    typedef sub-type {
        type string;
    }
}

Contribute — propose a file extension

Tell us where to find evidence about YANG (mapped to pl/yang). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/YANG/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Yampa YAP →