Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-379

YangTools grammar misses unknown statement in some statements

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 2431

    Description

      Based on YANG grammar review, these statements in YangTools grammar miss unknown statement, wrapped in statement separator (stmtsep):

      submodule-stmt
      import-stmt
      include-stmt
      belongs-to-stmt
      revision-stmt

      Example to compare and understand:

      RFC6020:
      submodule-stmt = optsep submodule-keyword sep identifier-arg-str
      optsep
      "

      {" stmtsep submodule_header_stmts linkage_stmts meta_stmts revision_stmts body_stmts '}

      ' optsep;

      as opposed to:

      YangTools (YangParser.g4):
      submodule_stmt : SUBMODULE_KEYWORD string
      LEFT_BRACE
      submodule_header_stmts
      linkage_stmts
      meta_stmts
      revision_stmts
      body_stmts
      RIGHT_BRACE;

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              martin.ciglan Martin Ciglan
              martin.ciglan Martin Ciglan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: