Commit Graph

14 Commits

Author SHA1 Message Date
Matthew Flatt
cce0a1c62c scribble/decode: fix contract on `decode-compound-paragraph'
Add a test suite that at least tries each export of `scribble/decode'.

Merge to v5.3.2

original commit: 5ab048bb5cd05fa109b990bb73bc7033b09230ee
2013-01-09 18:52:16 -07:00
Matthew Flatt
d373434241 scribble: decode a lone ` as a left "curly quote"
Also, add 'lsquo as allowed content.

Omitting the ` conversion in the first place was over-conservative.
There's a backward-compatibility issue with this addition (i.e., a
document might contain a backquote in a decoded context that is
meant to be rendered as a backquote), but the potential problems
seem minor.

original commit: cb041850f424644937c8b494c64c066bbe5f2069
2012-09-21 07:37:30 -06:00
Matthew Flatt
9dd4dddb90 scribble/base: generalize `itemlist' to splice/coerce some arguments
Also, add a `spliceof' contract constructor to `scribble/decode'.

original commit: f11450d6019924f38bc523967cab1384514f2163
2012-08-03 13:43:23 -06:00
Matthew Flatt
2c7e58dd70 tweaks to Danny's Scribble changes
original commit: 130618e946640d749a81312fa951acd43ec1c66a
2012-06-28 08:57:58 -06:00
Danny Yoo
db64a47dd7 Changing decode-string so it avoids allocation and interns the individual string components.
original commit: 2f4671235c322f3450b0633cd866f18b95f58f13
2012-06-28 08:39:03 -06:00
Matthew Flatt
27d597b71f intern strings, etc. only when making syntax objects, not in `read'
Rename `read-intern-literal' to `datum-intern-literal'.

Interning is needed only in `read-syntax' or `datum->syntax' to
set up the invariants that the bytecode compiler needs for cross-module
optimization. When `read'ing numbers from a data file, meanwhile,
interning slows things down a lot and doesn't seem worthwhile.

original commit: ee775c3cc3088a8de848399b3c1eec97bbc52b89
2011-12-14 16:03:44 -07:00
Matthew Flatt
9d0ff0cdfd more interning related to Scribble xref
original commit: 17504a960eb552992818a9b303457d58f9171b2a
2011-12-10 11:43:58 -07:00
Matthew Flatt
f1a593d3a3 read-intern strings generated by Scribble; other interning
This change saves a small amount of space in cross-reference files
and some space in loaded cross-reference information.
It also saves work converting strings to mutable on deserialize,
although the performance difference seems negligible.

original commit: b2fade9206590173e4c2e346357ad13150525387
2011-12-10 11:43:58 -07:00
Ryan Culpepper
02d8332600 removed useless requires
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00
Matthew Flatt
f60f217aae allow lists of pre-content to `decode-content', etc.
and improve docs for `scribble/decode'

original commit: d8352d5890b3817db5bae24c85cc57cf6a25401a
2011-07-06 09:07:19 -06:00
Eli Barzilay
45a9cd48c2 ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Robby Findler
027d80e352 added a missing error check to scribble decoding
original commit: ecf45ab426b5215a71f31ffb223dfce7cadd66fd
2011-06-11 08:58:06 -05:00
Jay McCarthy
39a6097dc5 This seems to fix pr10980
original commit: 0ed6e4a3963ca7b2f5600ce8b436d1c343f84177
2010-06-25 07:10:51 -06:00
Matthew Flatt
7e5406e889 rename all files .ss -> .rkt
original commit: 28b404307793f041bb3363135a2968e283855318
2010-04-27 16:50:15 -06:00