Wrote a separate parser just for parsing the comments and assignments but unable to solve grammar conflicts and neither able to combine embedded it in OpenScad parser due to new tokens. I was able to scan all tokens correctly.
Also found that we can debug shift/reduce and reduce/reduce conflicts in grammar by using -v option which will create a whole other file with the .output extension. The contents of this output file is still a mystery to me. Hopefully, I’ll be able to get some insight into the logical flaws in my grammar.