Interpreter and Compiler | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Interpreter and Compiler

Hello guys! I'm pretty interested in computer science and and programming! That's why I chose to make a programming language. I made already a program that I run passing an .mylang file and it prints a text that is between " " after print keyword. But I'm running a c program to do this like that. ./mylang test.mylang Is it considered compiler, Interpreter or just c program? Also what is easier to write? Compiler or interpreter? I'm interested in compilers more.

16th Sep 2019, 5:23 PM
Lighton
Lighton - avatar
2 Answers
+ 1
All I know about them are that compiler translates a file to another file which could be executed and interpreter tranlate the file line by line and execute it line by line
16th Sep 2019, 5:41 PM
Lighton
Lighton - avatar
0
A compiler written in c couldn't translate .mylang files to .c and then run c compiler?
16th Sep 2019, 6:28 PM
Lighton
Lighton - avatar