Skip to content

Commit

Permalink
Merge pull request #45 from gwhitney/layout_param
Browse files Browse the repository at this point in the history
docs: Add pointer to key config parameter for layout declarations
  • Loading branch information
eelcovisser committed Feb 4, 2021
2 parents 7577fe9 + 7dd88a3 commit 9d8a387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/langdev/meta/lang/sdf3/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ In the paper :cite:`s-ErdwegRKO12`, the authors describe layout constraints in t
the position of the subtree involved in the constraint (``0``, ``1``, ...), token selectors (``first``, ``left``, ``last`` and ``right``), and position selectors as lines and columns (``line`` and ``col``).
This mechanism allows writing layout constraints to express alignment, offside and indentation rules, but writing such constraints is
rather cumbersome and error prone. Alternatively, one may write layout constraints using **layout declarations**, which are more declarative specifications and abstract over
lines, columns and token selectors as the original layout constraints from :cite:`s-ErdwegRKO12`.
lines, columns and token selectors as the original layout constraints from :cite:`s-ErdwegRKO12`. **Note**: if you want to use layout declarations, you should specify the ``jsglr-version: layout-sensitive`` parameter for SDF3, see `JSGLR configuration <configuration.html#jsglr-version>`_.

- **tree selectors**

Expand Down

0 comments on commit 9d8a387

Please sign in to comment.