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

Handle %token variable references in Yacc grammars #52

Open
thoni56 opened this issue Mar 29, 2020 · 0 comments
Open

Handle %token variable references in Yacc grammars #52

thoni56 opened this issue Mar 29, 2020 · 0 comments

Comments

@thoni56
Copy link
Owner

thoni56 commented Mar 29, 2020

A yacc grammar may have the following

%union {
  int integer;
}

%type <integer> rule

The integer is a field in the semantic stack, and the %type indicates that the listed rule "returns" that field.

c-xrefactory doesn't understand the %type declaration so a rename of the field will miss that occurrence.

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