I am confused by these two terms. Are they the same?
+3
A:
I think you mean "Compiler" when you say "Translator." They are not the same. Preprocessing is a phase of compilation.
See the Wikipedia article.
Matthew Jones
2009-11-05 21:22:39
+1: but i've seen some people use translator for beautifier.
LB
2009-11-05 21:25:50
A:
The preprocessor is actually run before the compiler and handles special directives like macros.
Guido
2009-11-05 21:29:47
A:
A preprocessor converts a stream of text tokens into a different stream of tokens.
A compiler converts a stream of tokens into executable code.
Loadmaster
2009-11-07 02:47:19