Is writing a compiler based on C basically just writing a program which reads a file? -


i've been thinking of making language personal use (and learning), , far can tell easiest way write 'compiler' in c program reads file , actions depending on in file.

is there better way make language?

i've been skimming through these 2 links:

http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf

http://www.stack.nl/~marcov/compiler.pdf

the first telling me how write compiler compiles c, don't want that.

the second telling me how make compiler based upon on outdated language (i think), , don't want language usable on old machines or something.

so, basically: want write compiler own language, not other languages. how do this? making compiler in c idea?


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -