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

Documentation doesn’t show how to connect the pieces #15

Closed
leafac opened this issue Feb 14, 2017 · 2 comments
Closed

Documentation doesn’t show how to connect the pieces #15

leafac opened this issue Feb 14, 2017 · 2 comments

Comments

@leafac
Copy link
Contributor

leafac commented Feb 14, 2017

The documentation shows how to define languages and passes. But doesn’t show how put them together to form a compiler. In particular, it has no example of using the parser, nor does it explain with-output-language.

In my exploration of the source, I figure the following works:

(make-explicit (with-output-language (L0 Expr) `(if 0 1)))
;; => (language:L1 '(if '0 '1 (void)))

(define-parser parse-L0 L0)
(make-explicit (parse-L0 '(if 0 1)))
;; => (language:L1 '(if '0 '1 (void)))

But it’s not included in the documentation, and I’m not sure which option is right and what are the implications.

Also, it’d be nice to have documentation for the tracing feature shown in this talk: https://www.youtube.com/watch?v=Os7FE3J-U5Q

@dented42
Copy link

This almost kinda seems like a duplicate of issue #1?

@leafac
Copy link
Contributor Author

leafac commented Oct 27, 2017

I guess you’re right. By the way, the tutorial mentioned there is here. It isn’t finished yet, but it helped me anyway.

@leafac leafac closed this as completed Jul 17, 2019
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