Skip to content

Handle %token variable references in Yacc grammars #52

@thoni56

Description

@thoni56

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions