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

%type<t>XXX after %token XXX not be recognized #33

Open
RussellGuo opened this issue Oct 10, 2023 · 1 comment
Open

%type<t>XXX after %token XXX not be recognized #33

RussellGuo opened this issue Oct 10, 2023 · 1 comment

Comments

@RussellGuo
Copy link

RussellGuo commented Oct 10, 2023

Hello,

Sorry for brothering you. As the title, I declared a token by %token XXX, then I defined it's type ‘t’ by %type<t> XXX. After that a warning 'Token declared but never used.' above the XXX appears. I think the plugin recognizes %type as a non-terminal definition. That syntax is allowed by bison (even in YACC I guess) and can be used.

thanks a lot.

@vikram18rock
Copy link

I agree with @RussellGuo. pasting a screenshot for clarity on the issue
image

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

No branches or pull requests

2 participants