c programming assignment

a project requires a piece of code that would syntactically analyse a given program taken from a filewhat could be the possible code?for eg...it checks if a FOR loop is used a opening and aclosing braces should be used