So as per request..and due to my inability to say no to people...
here you have a yacc program to check if the expression is valid or not
Sorry I don't understand yacc myself but well I made it work so ....
YAY?
Thanks to all subscribers..
I dunno why you guys subscribed but like thanks anyways ❤