Update lab3.md assignment text#9
Open
milosonator wants to merge 3 commits intoTUDelft-IN4303:masterfrom
Open
Conversation
Add an example on how layout in a syntax definition template is reflected in the pretty-printed output.
Member
|
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.
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. |
Author
434b9c0 to
f539025
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an example on how layout in a syntax definition template is reflected in the pretty-printed output.