Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of Missing Semantic Checks #174

Open
3 tasks
wenovus opened this issue Feb 18, 2021 · 0 comments
Open
3 tasks

List of Missing Semantic Checks #174

wenovus opened this issue Feb 18, 2021 · 0 comments

Comments

@wenovus
Copy link
Collaborator

wenovus commented Feb 18, 2021

Today, the yang package's role is to generate an user-friendly IR in Go (i.e. the Entry tree) that downstream libraries can use, leaving the job of doing the complete set of semantic checks to more complete checkers like pyang.

In order to be a complete compiler front-end, a complete set of semantic checks would be needed, wherein the output Entry tree can be assumed to be completely valid, without any YANG errors.

The list tracks the missing checks (as they're found), so that we know where to start if we ever need this feature from goyang.

  • Extensions usages should have a corresponding declaration.
  • duplicate prefixes are not allowed.
  • The "default" statement MUST NOT be present on choices where "mandatory" is "true".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant