Add %define api.value.type feature, fixes #6#8
Add %define api.value.type feature, fixes #6#8madopew wants to merge 1 commit intobabyraging:masterfrom
Conversation
|
Hi, thank you for the PR. I've reviewed your code, it looks good. The solution you proposed won't be very extensible for other %define values, although we might not need to handle the others...... as they are rarely used... XD Some problems I've found in your code https://github.com/babyraging/yash/pull/8/files#diff-8520701a43509ebb5bdceb328ede5beb98e91121807c434dbd6ff112f8039a04R15 |
|
We might need to support this too |
|
Hi, thanks for reply! While trying to fix that issue I already realized how actually problematic it is to add %define :)
Well yes, it says that in the manual but I've actually tried to run it and Bison threw me an error: (worth to mention, it's not even a warning, it's an error)
You are right, missed that. For some reason I thought C id's support the minus sign |
Thanks for the extension, it’s great.
So here’s my attempt to fix #6. I’ve tried my best to remain the code style as it was but probably missed some meaning (or forgot about some details). I’ve added new parser states and modified regex for word (it now includes minus sign). Some details: