Getting a Counter

2021-09-30 Thread Guenther Sohler
Hi, In my parser i don't want flex to return comments in my code as flex tokens. Instead i want to store them in a different list together with their position. Lateron i am using their position to included them in the code again. For that reason i am interested to know the Token position in the pa

text is not parsed correctly due to shift/reduce conflict

2021-07-24 Thread Guenther Sohler
Hi Folks, When trying to code a c language parser I got a issue with shift/reduce conflict in bison, which actually hurts me. It happens when parsing this: int main( int a,[XXX] int b) [XXX] is the pointer of the issue: When reading the comma it does not know wether to continue iterating in var