 Syntactic pattern recognition can be used instead of statistical pattern recognition if there is clear structure in the patterns.One way to present such structure is by means of a strings of symbols from a formal language.In this case the differences in the structures of the classes are encoded as different grammars.