Commit Graph

28237 Commits

Author SHA1 Message Date
Matthew Flatt
f8c30338db fix problem with `raco exe' and cross-phase persistent modules
Relevant test is "teaching-lang-executable-creation.rkt" iin
"tests/drracket".
2013-02-27 08:53:43 -07:00
Matthew Flatt
abf44f8b49 add `module-compiled-cross-phase-persistent?' 2013-02-27 08:53:43 -07:00
Matthew Flatt
88a36a077c terminology change again: "cross-phases persistent" modules 2013-02-27 08:53:43 -07:00
Matthew Flatt
c1469b9480 fix a test 2013-02-27 08:53:43 -07:00
Matthew Flatt
a46849f3b9 minor decompiler tweak 2013-02-27 08:53:43 -07:00
Eli Barzilay
ee69dc58bc Allow "*" directories in distribution specs.
Useful to avoid deleting stuff from directories that might have
non-distributed materials.
2013-02-27 10:31:28 -05:00
Eli Barzilay
5ca93be56c New Racket version 5.3.3.6. 2013-02-27 03:30:19 -05:00
Robby Findler
574fc8f50f add a missing arg to jump-to-next-callback
closes PR 13560
2013-02-26 21:55:17 -06:00
Robby Findler
9621a58c4c change expansion of ->i to make renaming work better in check syntax
Specifically, when expanding in the body of a dependent argument, put
the original variable for the dependened on field into that code, but
changing the expansion so that the binder becomes the original field's
x, not the x in the dependent declaration list.

This means that, for example, in this program:

(->i ([x any/c]
      [y (x) (begin x any/c)]
      [z (x) (begin x any/c)]) any)

the first x will be the binder and the other four now count as
bound occurrences.

Also, rip off Casey's redex check syntax tests to add tests

closes PR 13559
2013-02-26 21:55:17 -06:00
Burke Fetscher
76421ee786 Fix expansion for relations in term positions.
Explicitly disables random generation for relations in term
positions, but fixes a problem with runtime functionality
for the same.
2013-02-26 21:11:06 -06:00
Matthew Flatt
a04bfa5ba2 fix phase-collapsing-module inference
This bug was causing a crash in some DrRacket tests.
2013-02-26 19:19:57 -07:00
Matthew Flatt
e15569e006 add `racket/kernel/init' 2013-02-26 19:01:36 -07:00
Matthew Flatt
2646ff6895 try "phase-collapsing" instead of "phaseless" 2013-02-26 19:01:36 -07:00
Matthew Flatt
2e652fc2b3 fix some "phaseless" module holes 2013-02-26 19:01:35 -07:00
Asumu Takikawa
30c381f0b1 Various improvements to Guide section 3
* Examples
  * Scheme -> Racket
  * Grammar & style
2013-02-26 19:30:54 -05:00
Asumu Takikawa
ef08cc41e7 Enable contract and add a purpose statement 2013-02-26 17:38:05 -05:00
Matthew Flatt
899a3279c2 add experimental support for "phaseless" modules
The intent is to support phase-crossing data such as the `exn:fail:syntax'
structure type that is instantiaed by macros and recognized by contexts
that use `eval' or `expand'. Phaseless modules are highly constrained,
however, to avoid new cross-phase channels, and a module is inferred to
be phaseless when it fits syntactic constraints.

I've adjusted `racket/kernel' and improved its documentation a little
so that it can be used to implement a phaseless module (which can
import only from other phaseless modules).

This change also adds a `flags' field to the `mod' structure type
from `compiler/zo-structs'.
2013-02-26 14:55:28 -07:00
Danny Yoo
9b86d4452f Modify the src-pos error reporting in parser-tools to better show the token context.
Addresses PR 9924.
2013-02-26 13:20:47 -07:00
Robby Findler
bc479b41c5 adjust scribble-lexer test to handle errors 2013-02-26 12:41:25 -06:00
Robby Findler
3c295d14d0 fix lexer contract 2013-02-26 12:41:25 -06:00
Robby Findler
478ec22d02 add with-roots to plai's gc languages 2013-02-26 12:41:25 -06:00
Robby Findler
87a8e6f677 fix unstable/2d's lexer to handle eof better 2013-02-26 12:41:19 -06:00
Eli Barzilay
8117b6b471 Change the symlink that serves docs to the one that holds the tweaked version. 2013-02-26 09:43:54 -05:00
Eli Barzilay
d746850664 Add template file for tweaked docs. 2013-02-26 09:43:54 -05:00
chrdimo
a3a98fd933 support for keyword argumnets + transfer-option, exercise-option and waive-option do not raise an error on values without an option 2013-02-25 22:18:17 -05:00
Vincent St-Amour
2846c17cb4 Fix the fix to TR contracts. 2013-02-25 20:10:14 -05:00
Vincent St-Amour
034aacafab Fix TR contracts. 2013-02-25 19:25:39 -05:00
Vincent St-Amour
088006413f Generalize type of curry to functions of arity 3+. 2013-02-25 14:03:17 -05:00
Eli Barzilay
3175ab2ce6 Improve srfi-std html files.
Re-encode in UTF-8, and for the main page also improve the text with
some racket-isms.  (Could use much more work, of course.)
2013-02-25 11:08:31 -05:00
Eli Barzilay
2abcb883cd Minor improvements to version-specific download pages. 2013-02-25 11:08:30 -05:00
Matthew Flatt
d113e79fb5 file/untgz: fix race 2013-02-25 06:44:45 -07:00
Robby Findler
8c0291e2c6 traditional chinese string constants update, also from Chongkai Zhu 2013-02-24 16:40:23 -06:00
Robby Findler
18a5dcb3d3 add port-count-lines? to the lexer contract 2013-02-24 16:37:06 -06:00
Robby Findler
a0059f791a more 2d lexer repairs 2013-02-24 16:37:06 -06:00
Eli Barzilay
250880d2a4 Add links to old documentations.
* The all-versions page has a docs column with html/pdf links, and also
  two links in the nightly builds footer.

* Specific version download pages have a link to the docs for that
  version.  (Only html, to save space.)
2013-02-24 17:12:03 -05:00
Eli Barzilay
9b1247b00d Revert "Adding link to prior versions of the docs."
Instead, add links to the web pages.

This reverts commit 87a5280b13.

Conflicts:
	collects/scribblings/main/config.rkt
2013-02-24 16:59:52 -05:00
Eli Barzilay
c7173cd1c6 Improve `file' tests.
* Move sha1 test to the same place, to be run like the others.

* Unify tests for untar and unzip.

* Also improve them: test results instead of failing with errors.  Also,
  generate random text to archive, and use 0 for group+other permission
  bits (to avoid world writable results on an error).
2013-02-24 15:16:00 -05:00
Eli Barzilay
cae6b53178 Make cat%' into a macro so ~a' etc get a proper name. 2013-02-24 15:16:00 -05:00
Eli Barzilay
7d2aa88f3d Improve label generation code. 2013-02-24 15:16:00 -05:00
Matthias Felleisen
3818954dc3 properly named 2013-02-24 15:13:42 -05:00
Robby Findler
b3e803c757 add context information into the error messages for option contracts
Also, minor code cleanup (don't create a function and pass it
around when has only one thing in its closure and you can
just pass that around, especially when passing the function around
makes the code harder to read and the created function has to
have a "dot" arglist and use "apply" in its body)
2013-02-24 09:04:47 -06:00
Robby Findler
4b8813bb0e adjust syntax browser to work better for literal hashes and vectors
closes PR 13537
2013-02-23 20:26:57 -06:00
Robby Findler
814b9e490c add a keystroke to widen a rectangle 2013-02-23 20:12:56 -06:00
Robby Findler
fe515e3ac7 fix bugs in unstable/2d lexer 2013-02-23 20:12:56 -06:00
Robby Findler
40363da511 forgot to add this file in my previous commit 2013-02-23 19:50:34 -06:00
Robby Findler
d25cbed6c0 add scrollbars 2013-02-23 16:51:30 -06:00
Robby Findler
5e2cc344c8 change the option setup: everyone has an option contract now and
the module lexer either exercises or not, depending on its level of trust
2013-02-23 16:26:46 -06:00
Robby Findler
64d7911fe5 add has-option? to check if a value has an option contract or not 2013-02-23 16:26:46 -06:00
Robby Findler
18c009276d fix up tests to reflect the module-lexer now behaves a little
better wrt to its first result

That is, instead of just returning the string "#lang" it now
returns the actual text that was there (it was supposed to be
doing that all along and my recent commit fixed it, but I
missed the test cases)
2013-02-23 15:42:43 -06:00
Danny Yoo
18889de808 Add 'extra' to emphasize the intended meaning.
Closes PR 13550.
2013-02-23 13:59:07 -07:00