Reputation: 47
My teacher gave this question ( how to develop compilers without compiler writing tools ). I searched for it but I did not find anything. So, If anyone have any idea about this please help me. I found so many information about developing compiler with writing tools but I found nothing when I searched for without compiler writing tools.
Thank you in advance.
Upvotes: 0
Views: 408
Reputation: 8773
A compiler is basically a filter/converter. It reads text files and outputs data that happens to be identical to the instructions the given CPU understands.
So you need to find out:
Then you can read the source file and output compiled code.
Upvotes: 0
Reputation: 310840
With:
switch
statement), andUpvotes: 1