Skip to content

Update lab3.md assignment text#9

Open
milosonator wants to merge 3 commits intoTUDelft-IN4303:masterfrom
milosonator:patch-1
Open

Update lab3.md assignment text#9
milosonator wants to merge 3 commits intoTUDelft-IN4303:masterfrom
milosonator:patch-1

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