/**************************
Assignment Statment Module
**************************/
assgnStmnt(Clist) :-
Clist = [H|T], id(H), conc(Exp, [';'|AnotherStmnt], T), Exp = [Op|Rem], Op = '=', expr(Rem), assgnStmnt(AnotherStmnt),!
;
Clist = [], !.
This code is to parse assignment statement in complier. But i need to output to user where's the syntax error in his code.
like : if he entered : x = x + 1, I want to output that expected ';' not found.
How can i do that ???