[dylan-lang/opendylan] 08761c: Improve fragment presentation on sequence literals...

GitHub <[email protected]> Thu, 17 Dec 2015 06:28:34 -0800
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <5672c692f032b_6a783ff0bce6f2c0104340@hookshot-fe4-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/opendylan
  Commit: 08761c87d98b8ee0dc7c2fbe9685b8f8baa2b9af
      https://github.com/dylan-lang/opendylan/commit/08761c87d98b8ee0dc7c2fbe9685b8f8baa2b9af
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-12-17 (Thu, 17 Dec 2015)

  Changed paths:
    M sources/dfmc/reader/presentation.dylan
    M sources/dfmc/reader/tests/literal-test-suite.dylan

  Log Message:
  -----------
  Improve fragment presentation on sequence literals.

Previously, we just used the default literal fragment presentation
which takes the literal value and prints it in a single shot with %=.

This breaks things that need to print differently based upon the actual
fragments, like keyword vs symbol syntax for symbols. It also won't support
nice line wrapping and other pretty printing behavior should that be desired.

* sources/dfmc/reader/presentation.dylan
  (present on sequence literal fragments): Implement.

* sources/dfmc/reader/tests/literal-test-suite.dylan
  (test list-literal-test): Verify presentation of parsed fragments.
  (test pair-literal-test): Likewise.
  (test vector-literal-test): Likewise.

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter