Adriaan van Os wrote:
Would it be possible to look at GNU Pascal and Objective Modula-2 as several dialects of the same language ?
The boundary between dialect and different language is not well defined. If you take a very broad view, you might consider all of Pascal's, Modula's and Oberon's dialects to be dialects of a single Wirthian language. OTOH, if you take a very narrow view, then you might consider even the dialects of Pascal to be separate languages.
It is very much in the eye of the beholder.
And if so, why not merge both projects ?
I don't think that would be very practical for a number of reasons. Our project is targeting LLVM, GNU Pascal targets GCC. We build our own AST, the GPC AST is probably GCC's. So not only would there be different front-ends but different middle and back-ends, too.
It would be far more practical for GPC to join forces or share code with another GNU compiler project. For example GNU Modula-2 or perhaps GNAT.