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

Check for duplicate nodes #146

Open
robrix opened this issue Jan 8, 2024 · 0 comments
Open

Check for duplicate nodes #146

robrix opened this issue Jan 8, 2024 · 0 comments
Labels
analysis Analysis (e.g. ahead-of-time error checking) of TSG sources. enhancement New feature or request

Comments

@robrix
Copy link
Contributor

robrix commented Jan 8, 2024

(x) @x {
  node @x.y
  node @x.y
}

The above is a trivial example of a duplicate node error that we'd catch at runtime, but which we could instead catch statically by a simple analysis approximating the dynamic semantics w.r.t. node assignments. More interesting examples—guarded by interesting patterns, for example—are likely the only ones that we care about in practice (the above doesn't seem to happen very often and is easy enough to discover and resolve when it does), and are pretty much all dependent on exhaustiveness checking (#64).

cf #64 (exhaustiveness checks)

@robrix robrix added analysis Analysis (e.g. ahead-of-time error checking) of TSG sources. enhancement New feature or request labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis Analysis (e.g. ahead-of-time error checking) of TSG sources. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant