in my personal point of view i would say a parser is more like "one-directional" "automatic" vs. an interpreter, the interpreter has more "intelligence"
its an interpreter
because the compiler convert whole of the sentence once into the machine langauge but the interpreter convert one by one
A compiled program would execute faster than an interpreter running the same code step by step.
Both are "System Softwares".
Both are use to convert high level languages into machine language
combination of interpreter and compiler.
It is easy to tell: there is no interpreter for C and C++, they are compiled languages.
There are very few languages (e.g. old BASIC variants in hobby computers) that have both interpreter and compiler, so your question hardly makes sense. Simply pick a language, and use it.
in my personal point of view i would say a parser is more like "one-directional" "automatic" vs. an interpreter, the interpreter has more "intelligence"
its an interpreter
because the compiler convert whole of the sentence once into the machine langauge but the interpreter convert one by one
A compiled program would execute faster than an interpreter running the same code step by step.
A htm file is interpreted, not compiled. A browser acts as the interpreter.
There is no point in comparison.
You will have to ask the compiler and interpreter writers that question. What I can tell you with certainty, at one time all programs were hand assembled.
# An interpreter translates from source code to machine code on-the-fly; a compiler does it all before the program is executed. # Compilers can spend a lot of time on analysis and optimization, allowing for (generally) better performance of code.