-
Notifications
You must be signed in to change notification settings - Fork 11
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 is not declared" on %define api.value.type #6
Comments
I think it could be fixed by adding '%define' case here: yash/src/languages/parser/yaccParser.ts Lines 221 to 226 in 021fdbf
with new ParserState , and a new case here (with additional modifications to TokenType.Word):yash/src/languages/parser/yaccParser.ts Lines 175 to 179 in 021fdbf
that, probably, should set a default type for all the rules (?) I know that adding %define makes things more complicated but it would be nice to get rid of that annoying message :) |
Hi there, thanks for the issue. I see, this is a feature that we didn't implement, mainly because we didn't use it :) Can you provide me a minimal example to reproduce this issue that I can test with? |
%define directive of Bison is used to set some features. There are many of them but in that case (and it's really the one that I ever used) defines the data type of a stack. (reference %define value)
|
Is there any process on this? |
I may run into a similar problem when using |
Nonterminals are highlighted as "Semantic value used inside actions but has not declared the type."
although all values %defined to be api.value.type {some data type}
The text was updated successfully, but these errors were encountered: