Commit Graph

240 Commits

Author SHA1 Message Date
Eli Barzilay
6ab2e7edad A little simpler and a little more robust (eg, using source location for
the wrapped body, and accepting any syntax/sexpr combination).

svn: r17197
2009-12-05 05:53:15 +00:00
Eli Barzilay
af998f0d56 mostly reformatting
svn: r17196
2009-12-05 03:49:24 +00:00
Stevie Strickland
e76b516e1d Fixes a bug if #%module-begin was already there.
svn: r17195
2009-12-05 03:27:19 +00:00
Eli Barzilay
ac0a1dc7d8 General reformat, and move the new comment about #%module-begin to the end of the section
svn: r17194
2009-12-05 02:41:35 +00:00
Eli Barzilay
49df9502a4 Some improvements to the description
svn: r17193
2009-12-05 02:30:44 +00:00
Stevie Strickland
152ea3c6c8 Move it into the only place it's used.
svn: r17155
2009-12-01 22:00:43 +00:00
Stevie Strickland
4c61aabea0 Actually, just have the descender return the #%module-begin expression,
if it finds one, and otherwise do the wrapping appropriately.

svn: r17154
2009-12-01 21:58:58 +00:00
Stevie Strickland
a24dd4affb Have to handle the fact that "body" is a (possibly syntax) list of
expressions here.  Could also pull out the car of said list and just
return that, but eh.  This code is going to be crap until (if) we can
ever remove the need to be backwards compatible.

svn: r17153
2009-12-01 21:27:55 +00:00
Stevie Strickland
39689ae4e7 Elaborate in this comment.
svn: r17152
2009-12-01 21:14:24 +00:00
Stevie Strickland
d113d2d19a Specifically mention #:wrapper1 as well, since that's also a common place
for doing this.

svn: r17151
2009-12-01 20:44:27 +00:00
Stevie Strickland
75803d4881 Here's the changes that accidentally went to trunk first.
svn: r17150
2009-12-01 20:39:58 +00:00
Ryan Culpepper
f8e22d4cad syntax/parse: changed minimatch to use make, catch struct errors
unstable: added syntax-local-eval, internal-definition-context-apply

svn: r17144
2009-12-01 20:32:32 +00:00
Matthew Flatt
cad5d85354 change syntax/toplevel to use scheme/base instead of mzscheme, which avoids some namespace problems
svn: r16785
2009-11-15 14:27:26 +00:00
Ryan Culpepper
e120f4ded5 syntax/parse: fixed bug in #:declare with splicing stxclass
svn: r16712
2009-11-12 05:43:50 +00:00
Ryan Culpepper
a64e9278d1 syntax/parse: fixed splicing syntax class bugs
svn: r16690
2009-11-11 08:23:12 +00:00
Ryan Culpepper
daba183b08 unstable/syntax: added format-id
svn: r16629
2009-11-09 02:33:43 +00:00
Ryan Culpepper
d1439ef6c6 unstable/struct: added struct->list
some (cdr (vector->list (struct->vector x))) => (struct->list x)

svn: r16622
2009-11-08 21:17:51 +00:00
Ryan Culpepper
7483b7ed20 unstable:
added struct and syntax libraries

svn: r16621
2009-11-08 19:20:53 +00:00
Ryan Culpepper
0feac0f636 syntax/parse:
tweaked error selection algorithm
  added tests

svn: r16533
2009-11-04 00:31:24 +00:00
Ryan Culpepper
5116be8342 syntax/parse:
fixed bug in error selection
  added ~datum patterns

svn: r16497
2009-11-02 07:59:17 +00:00
Matthew Flatt
973d51c20f change 'read-language' protocol so that the result from 'get-info' accepts a key plus default value (instead of just a key)
svn: r16459
2009-10-29 23:05:56 +00:00
Ryan Culpepper
c7d95a21c2 syntax/parse:
dependence on scheme/match eliminated
  fail-when, etc use conditional value if syntax
  error message typos (bad tildes) fixed

svn: r16393
2009-10-20 23:17:30 +00:00
Matthew Flatt
56fbafa6c8 change model reader to coerce a syntax #:language result to a datum for 'read' mode
svn: r16292
2009-10-09 20:30:05 +00:00
Jon Rafkind
dad9907456 typo
svn: r16226
2009-10-02 21:52:20 +00:00
Ryan Culpepper
68e805029f syntax/parse: added disappeared-use properties
svn: r16113
2009-09-23 04:27:14 +00:00
Ryan Culpepper
5ababfac9c syntax/parse: added ~parse action pattern
svn: r16097
2009-09-20 23:49:41 +00:00
Ryan Culpepper
491808e717 syntax/parse:
separated ~!, ~bind, ~fail as "action patterns", documented
  docs use eg "single-term pattern" instead of "S-pattern" in text

svn: r16089
2009-09-20 20:47:54 +00:00
Ryan Culpepper
69e1a3fec8 syntax/parse: reorganized docs
svn: r16080
2009-09-20 06:27:50 +00:00
Ryan Culpepper
5db475cab2 syntax/parse: documented ~var, ~literal, ~not, head ~and
Do not commit to release branch.

svn: r16079
2009-09-19 23:09:20 +00:00
Ryan Culpepper
fdc2eaa646 syntax/parse: fixed bug in #:when parsing
Please commit to release branch.

svn: r16078
2009-09-19 23:07:51 +00:00
Ryan Culpepper
282d36e363 syntax/parse: added explicit ~var and ~literal forms (no docs yet)
svn: r16077
2009-09-19 20:04:00 +00:00
Ryan Culpepper
a58389ad20 syntax/parse: added ~and H-patterns, ~not S-patterns (no docs yet)
svn: r16070
2009-09-19 15:48:07 +00:00
Ryan Culpepper
c9a4a9e101 syntax/parse: changed to use scheme/contract/base
svn: r16054
2009-09-17 21:13:12 +00:00
Stevie Strickland
636adcc142 Refactoring all the private contract stuff into its own playpen.
svn: r16052
2009-09-17 20:55:37 +00:00
Ryan Culpepper
987ab4c5e8 removed old stxclass collection
Please apply to release branch.

svn: r16047
2009-09-17 16:11:20 +00:00
Ryan Culpepper
880f7f2707 syntax/parse docs: avoid phase arith discussion
Please apply to release branch.

svn: r16046
2009-09-17 15:59:29 +00:00
Ryan Culpepper
a8101a227a syntax/parse: added quick start with examples
svn: r16023
2009-09-16 17:30:25 +00:00
Ryan Culpepper
184fbae9b2 syntax/parse: convert datum to be matched to syntax, placeholder expr/c
svn: r15982
2009-09-11 21:31:42 +00:00
Ryan Culpepper
7e4c6162a0 syntax/parse: added #:when back
svn: r15980
2009-09-11 19:48:33 +00:00
Matthew Flatt
c8c43bbe34 fix docs for get-module-code
svn: r15965
2009-09-10 19:42:30 +00:00
Matthew Flatt
d4e40e0b25 fix some problems with sandboxes and extension (PR 10381) and Snow Leopard extension building (also demonstrated by PR 10381)
svn: r15964
2009-09-10 19:39:37 +00:00
Matthew Flatt
98ce34dd77 fix chaining-language reader bug
svn: r15908
2009-09-08 00:11:02 +00:00
Matthew Flatt
3ebbd56865 fix cm problem tracking reader dependencies; add 'reader' reader language
svn: r15907
2009-09-08 00:07:11 +00:00
Ryan Culpepper
ee41d24bb9 syntax/parse: added head ~optional pattern, improved docs
svn: r15906
2009-09-07 23:32:41 +00:00
Matthew Flatt
d92ac1c2fd fix docs for syntax-local-name, syntax-local-infer-name, and 'inferred-name
svn: r15904
2009-09-07 21:02:03 +00:00
Ryan Culpepper
2acdfd6eb5 syntax/parse: fixed error-reporting bugs, added error-reporting tests
svn: r15853
2009-09-01 19:16:33 +00:00
Ryan Culpepper
0bd68c6813 syntax/parse:
added #:defaults arg to ~optional
  cleaned up error-reporting of special forms (not generated code)

svn: r15848
2009-09-01 15:25:17 +00:00
Ryan Culpepper
1a2ce72089 syntax/keyword: renamed and added selection procedures
syntax/parse: documented #:context option

svn: r15839
2009-08-30 18:22:09 +00:00
Ryan Culpepper
93b6f59264 syntax/parse: worked on docs, fixed error reporting bug
svn: r15834
2009-08-30 04:20:29 +00:00
Ryan Culpepper
e0395f6d68 syntax/parse: fixed bug in unbound-literal checking
svn: r15832
2009-08-30 00:26:41 +00:00
Ryan Culpepper
783d37a0d3 syntax/parse
added #:opaque syntax class option
  changed expectation handling

svn: r15831
2009-08-30 00:15:48 +00:00
Ryan Culpepper
43d10b5179 added syntax/keyword library
updated syntax/parse to add #:context argument

svn: r15828
2009-08-29 22:58:08 +00:00
Ryan Culpepper
38e256e6eb syntax/parse: fixed error in ~bounds form
svn: r15728
2009-08-13 18:28:33 +00:00
Matthew Flatt
5207a215af add missing core form to kernel-form-identifier-list, improve docs
svn: r15702
2009-08-11 19:48:05 +00:00
Ryan Culpepper
a97a7f51b5 Please apply changes to release branch.
syntax/parse:
  - removed scribble docs for old stxclass collection
  - fixed bug in syntax-parse and #:declare
  - added attribute calculation option
  - renamed 'static-of' to 'static', added 'atom-in-list'
  - fixed kernel-literals to include all expanded-code forms
  - added tests

svn: r15488
2009-07-19 01:08:00 +00:00
Eli Barzilay
bbc989f795 set svn:eol-style
svn: r15379
2009-07-04 02:01:41 +00:00
Ryan Culpepper
3e63caa887 merged changes from /branches/ryanc/sp2:
added syntax/parse library and documentation
  added syntax/id-table library and documentation

svn: r15376
2009-07-03 19:47:25 +00:00
Matthew Flatt
8e5993f99f fix serialization problems
svn: r15241
2009-06-23 12:07:54 +00:00
Eli Barzilay
0328b2ef81 make the lang and data identifiers visible in the #:info argument too
svn: r15192
2009-06-16 21:56:37 +00:00
Eli Barzilay
b9523d982c New #:info, #:language can return properties, construct a proper get-info function
svn: r15186
2009-06-16 17:04:16 +00:00
Eli Barzilay
54fc941f1f refactor code in a better way, especially for changes that will follow
svn: r15176
2009-06-15 08:59:13 +00:00
Eli Barzilay
7302411d73 reformat, fix error message
svn: r15165
2009-06-13 16:45:31 +00:00
Eli Barzilay
50e9a86dbc The get-info protocol is used -- both in reading mode and as part of
the compiled modules.  (Vacuously returning `#f' for now.)

svn: r15153
2009-06-12 14:42:05 +00:00
Eli Barzilay
81d8c97800 better code organization
svn: r15152
2009-06-12 14:33:22 +00:00
Carl Eastlund
5e6153628b Two instances of the typo: 'indentifier' instead of 'identifier'.
svn: r15081
2009-06-04 19:54:54 +00:00
Matthew Flatt
1809d9286e fix r6rs template problem with quoting ellipses
svn: r14780
2009-05-12 13:44:04 +00:00
Matthew Flatt
224f9fa3a7 fix bug in tracking paren shapes; fix Scribble binding search code; add syntax/template library
svn: r14661
2009-04-29 20:31:07 +00:00
Matthew Flatt
cd09b30497 (v4.1.5.5) repair interaction of provides redirected by a rename-transformer, certification of access to unexported variables, and protected exports; also get rid of kernel-reprovide special case in export handling, because a more general export-sharing technique subsumed the special case long ago
svn: r14593
2009-04-24 14:59:09 +00:00
Matthew Flatt
4b3626c156 fix inverted argument default for editor<%> read-from-file method; better Check Sytax results on packages; added syntax/flatten-begin library
svn: r14548
2009-04-17 22:50:19 +00:00
Eli Barzilay
c0a8a01222 Changed @itemize{...} to @itemize[...] (done after comparing the doc
tree and verifying that there are no changes).
(Also fixed a few bugs that were in the code)

svn: r14427
2009-04-05 17:46:20 +00:00
Matthew Flatt
75373d4094 refine replace-context docs
svn: r14223
2009-03-23 01:25:45 +00:00
Matthew Flatt
91c53fa123 add replace-context to syntax/strip-context
svn: r14196
2009-03-20 17:20:04 +00:00
Ryan Culpepper
64250c4931 syntax: fixed 'strip-context' on prefab structs
fixes bug in prefab struct literal in scheme/load module

svn: r14038
2009-03-10 21:19:18 +00:00
Matthew Flatt
6fe0677aa7 doc kernel-syntax-case/phase
svn: r14028
2009-03-10 16:39:32 +00:00
Matthew Flatt
f0473137e6 fix and document syntax/strip-context
svn: r13847
2009-02-26 13:19:25 +00:00
Matthew Flatt
50dff6234c add syntax/strip-context
svn: r13846
2009-02-26 13:11:11 +00:00
Eli Barzilay
bd561ab191 some paren typos
svn: r13416
2009-02-04 16:28:14 +00:00
Eli Barzilay
d1a0086471 newlines at EOFs
svn: r13105
2009-01-14 03:10:47 +00:00
Matthew Flatt
54a8fe3143 fix relto delay in colalpse-module-path
svn: r12383
2008-11-11 15:30:24 +00:00
Matthew Flatt
4215289320 doc fixes
svn: r12328
2008-11-06 16:22:12 +00:00
Matthew Flatt
37aae202c5 speed up doc build a little; fix bugs related to getting continuation marks from a thread and using the errortrace profiler
svn: r12237
2008-11-04 23:32:44 +00:00
Matthew Flatt
95bedb17fb change contracts to reflect context via #%variable-reference instead of syntax objects; add id-less #%variable-reference form; drop link to unneeded CPort objects in delayed thunks; streamline some modules that tend to show up in deep phases
svn: r12231
2008-11-04 14:24:12 +00:00
Matthew Flatt
bb7d3d1a28 fix 'local-expand' checking of stop list to disallow symbols; extend 'continuation-marks' to work on threads; fix HtDP language module-level stop list
svn: r12101
2008-10-23 13:38:03 +00:00
Eli Barzilay
8217dddd56 * The module-path place is now optional, and #:language can be used
with an expression (evaluated as usual, not quoted), or with a thunk
  that is invoked before reading the body begins.
* Added some missing tests that were not used for some reason...
* Some other documentation improvements.
* Improved the code a little more.

svn: r11957
2008-10-07 10:56:29 +00:00
Eli Barzilay
da389b03a9 better code layout (easier to add new options)
svn: r11956
2008-10-07 07:53:50 +00:00
John Clements
829b27f343 changed module-syntax/module-reader to syntax/module-reader
svn: r11784
2008-09-17 04:14:26 +00:00
Eli Barzilay
0b2f559e29 module-reader constructs proper source information, fix s-exp reader to use it
svn: r11769
2008-09-15 23:01:06 +00:00
Eli Barzilay
41a4f4b2ae macro -> function
svn: r11678
2008-09-12 15:03:54 +00:00
Matthew Flatt
e67b138830 fix problems with errortrace and namespace phases
svn: r11541
2008-09-04 22:03:06 +00:00
Robby Findler
5e963dccea added contracts back
svn: r11535
2008-09-04 12:09:18 +00:00
Matthew Flatt
2b98280729 fix module-path-index spec and use related to resolved module paths
svn: r11523
2008-09-02 13:54:43 +00:00
Eli Barzilay
db81f6afa1 typo
svn: r11519
2008-09-02 08:09:52 +00:00
Eli Barzilay
eaa5a69fa5 extend syntax/module-reader to avoid ugly hack in scribble/doc/reader
svn: r11517
2008-09-02 04:06:08 +00:00
Robby Findler
5596aff30f improved contract error messages so that they now always have absolute module references in them for blame information
svn: r11511
2008-09-01 19:54:50 +00:00
Eli Barzilay
9e5c466c47 deprecated message for wrap-read-all
svn: r11503
2008-09-01 04:25:54 +00:00
Eli Barzilay
093fe73855 * Minor extension (#:wrapper2 can accept an stx? boolean too)
* Added a more sophisticated test (scribble syntax with an arbitrary
  language), based on documentation example
* Documentation

svn: r11502
2008-09-01 04:23:50 +00:00
Eli Barzilay
7d6bc32ed9 * Extended syntax/module-reader to deal with many more situations
using keywords, and allowing arbitrary code in the reader module
* Added tests for the new functionality
* Used the new stuff for the r5rs, r6rs, and honu readers

svn: r11495
2008-08-31 06:25:41 +00:00
Matthew Flatt
ae9e317b44 fix more problems collapsing planet paths
svn: r11489
2008-08-29 21:45:38 +00:00
Matthew Flatt
797c141ede fix problems collapsing planet module paths
svn: r11488
2008-08-29 21:35:40 +00:00
Eli Barzilay
7d50e61c7f * Newlines at EOFs
* Another big chunk of v4-require-isms
* Allow `#lang framework/keybinding-lang' for keybinding files
* Move hierlist sources into "mrlib/hierlist", leave stub behind

svn: r10689
2008-07-09 07:18:06 +00:00