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

Update lab3.md assignment text #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

milosonator
Copy link

Add an example on how layout in a syntax definition template is reflected in the pretty-printed output.

Add an example on how layout in a syntax definition template is reflected in the pretty-printed output.
@guwac
Copy link
Member

guwac commented Sep 30, 2015

An illustrating example would indeed be useful here. @milosonator or @eduardosamorim, can you add a MiniJava example instead, e.g. a class declaration? Should consist of an example class, simple template rule which results in ugly pretty-printing, and adjusted template rule which results in pretty pretty-printing.

Changed the sdf3 pretty-printing template example to MiniJava syntax.
Add a pre and post for pretty-printing template with and without nice layout, so the difference is clear.
@milosonator
Copy link
Author

I changed the example to a MiniJava example with normal template which results in poor pretty-printing and a template which makes the printed result more pretty.

@milosonator
Copy link
Author

@guwac @udesou If possible, please check out my changes.

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

Successfully merging this pull request may close these issues.

2 participants