I just add a new feature to my previous Token Scanner (Wannabe Compiler). Now, there is a Syntax Analyzer feature that can check the correctness of your code.
The syntax analyzer is based on Pascal programming language grammar defined in http://www.informatika.org/~rila by Mr Rila Mandala.
Syntax Diagram 1:
Syntax Diagram 2:
Syntax Diagram 3:
Syntax Diagram 4:
Syntax Diagram 5:
You can get the program here (Wannabe Compiler 2.0)