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

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -