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

Record parsing #101

Closed
wants to merge 1 commit into from
Closed

Record parsing #101

wants to merge 1 commit into from

Conversation

polgreen
Copy link
Contributor

This fixes the first part of issue #99

The following did not parse because "x" is used as a record field and as a variable name

module main {
  type t = record {
    x : integer
  };
  var x : t;

  procedure foo()
    modifies x;
  {
    if (x.x == x.x) {
    }
  }
}

This is now added a test

@polgreen polgreen force-pushed the record_fix branch 2 times, most recently from 7c7bd05 to f97a54c Compare May 28, 2021 11:14
@polgreen polgreen marked this pull request as draft May 28, 2021 11:20
Also includes test for clashing variable names and record field names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant