[YANGTOOLS-379] YangTools grammar misses unknown statement in some statements Created: 25/Nov/14  Updated: 10/Apr/22  Resolved: 09/Feb/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Martin Ciglan Assignee: Martin Ciglan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks YANGTOOLS-381 Yang parser and Yang model API should... Resolved
External issue ID: 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;



 Comments   
Comment by Martin Ciglan [ 14/Jan/15 ]

Fix pushed:

https://git.opendaylight.org/gerrit/#/c/14144/1

Generated at Wed Feb 07 20:53:04 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.