Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a compiler #19

Closed
235689 opened this issue Jan 6, 2015 · 1 comment
Closed

Create a compiler #19

235689 opened this issue Jan 6, 2015 · 1 comment

Comments

@235689
Copy link

235689 commented Jan 6, 2015

I am reading your book and I would like to know if this parser could be used to build a compiler o this library will be useful only for interpretate a language and not compile it.

@orangeduck
Copy link
Owner

Hi,

This parser can certainly be used to create a compiler. All this library does is read in a program's source code and create an internal representation of it. What you do with that representation (either generate code or interprit it) is up to you. Although I should mention that my book only covers the process of making an interpreter.

Thanks,

Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants