Is possible compare grammars (EBNF or g4 or similar forms). While comparing it must ignore rules order and rules names, ignore names of nonterminals, only terminals is important.
How synchronize and emit only real difference?
Is any algorithm to compare different for example C grammar files?
Second level – ignore also terminals and compare only structure and philosophy of language – for example comparing grammar Java and C#.