Skip to content
New issue

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

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

Already on GitHub? # to your account

Validation of attributes #2162

Open
lhstrh opened this issue Jan 24, 2024 · 0 comments
Open

Validation of attributes #2162

lhstrh opened this issue Jan 24, 2024 · 0 comments

Comments

@lhstrh
Copy link
Member

lhstrh commented Jan 24, 2024

Currently, it is possible to annotate using attributes in ways that are inconsistent. For instance, one could write something like:

  reactor Source {
  output out: int
  timer t(1 nsec, 10 msec)
  state s: int = 0

  @label(value="Foo")
  @label(value="Bar")
  reaction(startup) {= lf_print("Starting Source"); =}
}

The validator should flag the second @label as inconsistent with the first.

@lhstrh lhstrh mentioned this issue Jan 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant