I'm trying to parse this piece of code which is written in my desired grammar and i get syntax error everytime. I've checked my code more than 10 times and i could'nt find a solution. The PARSER and LEXER codes are generated by bison and jflex respectively, since they are long i have to mention a link to my github. Here is my simple piece of code but it gives me the syntax error when i run the program.
program firstProgram
main
{
}
Thanks for helping me with this question.