Commit Graph

288 Commits (2fd35df83aa74034af02c9e580e5ea15d303f8bb)
 

Author SHA1 Message Date
Danny Yoo 2fd35df83a Correct location calculations for non-terminals.
The prior code constructed the location of nonterminal maches out of
the the state of the stream after parsing.  This isn't right for a few
reasons:

    1.  It doesn't get starting location correctly.

    2.  It doesn't behave when the non-terminal production did not
        actually consume tokens for its parse.

This patch modifies the parsers to also pass along a
"last-consumed-token"; it, along with a few other changes, provides
the parsers enough information to accurately construct the locations,
even when no tokens have been consumed during the parse.  We
synthesize a sentinel last-consumed-token token to take location from
the head of the stream.

original commit: 6e21e34ec7c7a3e9cf23a3f24bfafd6155e1f14a
12 years ago
Danny Yoo 33ebcd7a78 Modernize cfg-parser from mzscheme to Racket libraries.
original commit: 4ff4c677bd354cb1a26adf0c3e0e4de03a7a3939
12 years ago
Robby Findler d6f9d98289 make the position and position-token structs transparent
(these seem to only not be transparent because that is
the default)

original commit: facea9fe43ef37bd3c2f0f42a35ba12bd1bc88b7
12 years ago
Eli Barzilay 26f857f904 Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".

original commit: 672910f27b856549ad08d38832b6714edf226c8e
12 years ago
Eli Barzilay f4d9e18360 Random pickiness.
Spaces at EOFs, indentation, etc.

original commit: 7d6e79023cf9872e6f6af2f89961b742c6296f1d
13 years ago
Robby Findler e4eafd14e1 Added @literal-algol{} and started an algol60 test suite (apologies
if there already was one that I didn't find). Also fixed syntax
error raising procedure.

closes PR 12859

original commit: c0b928c758cc64b7b902fbe38838d31a3c1bc008
13 years ago
Matthew Flatt 3a4a952b98 more error-message conversions and repairs
original commit: a137459b65b54d65595e854101aae7440d9e65f6
13 years ago
Eli Barzilay c24fe38d91 A bunch of `fprintf' -> `eprintf' conversions (and a few related things).
original commit: 17090fca4f19298f01d03fea419edb20f315d040
13 years ago
Matthew Flatt 181de9ebc3 fix `cfg-parser' to more closely match `parser'
original commit: c1ceebb92a86fce791eb3965d885917195e03eb4
13 years ago
Eli Barzilay 1c2fb3197c Document `numeric'; closes PR 12338.
original commit: 8f1a4de2532114c8f724401075e669241ee9efd2
13 years ago
Matthew Flatt 6abcf2f87b add `var-ref->mod-decl-insp' and switch `cur-code-insp' uses
Macros and other tools that need syntax privilege used
`(current-code-inspector)' at the module top-level to try to
capture the right code inspector at load time. It's more
consistent to instead use the enclosing module's declaration-time
inspector, and `var-ref->mod-decl-insp' provides that. The
new function works only on references to anonymous variables,
which limits access to the inspector.

The real function name is longer, of course.

original commit: 0197902309c5400d463393829a88282c627dafd2
13 years ago
Eli Barzilay fec8ddaed9 Lots of documentation formatting.
Started as fixing misindented definitions, then more indentations, then
a bunch of similar things (square brackets, huge spaces at end-of-lines,
etc).

original commit: d61eb53686f735b979a60dc6f9efd3d2aa9777d9
13 years ago
Matthew Flatt 997ee78ce9 lexer tweak to get named procedure
original commit: fae6e273eda6188e34f38553136d374ade3807dd
14 years ago
Eli Barzilay 509800c0df ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
14 years ago
Ryan Culpepper 57a7231b45 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names

original commit: 1b702a2ae32aba835f7467ced6b203902db0ccd9
14 years ago
Matthew Flatt f8081d0175 remove syntax certificates; add syntax taints
original commit: 1160d3df629ce65eb8fe9ebea2c33b8d4000ea50
14 years ago
Eli Barzilay 616c2649fd A ton of `@scheme*' -> `@racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.

original commit: ac26fe75546b5182d78f18c2cd882f0f440849e2
14 years ago
Eli Barzilay 861d0d6110 Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)

original commit: debd1f9f1e6899e2a7e4ab5de929a49df490b5c7
14 years ago
Jay McCarthy e34d10d7a9 Adding a few index entries
original commit: d4417fab46242dc980a26585be51d4a1de6b959f
14 years ago
David Van Horn cb1c226c0e Fixes more spelling errors.
original commit: 760a58b65df2b91010d2bcc2739ddab2a4489729
14 years ago
David Van Horn eee95f195a Fixed various spelling errors.
original commit: c9519fd11300b07292df8619e86f48533eff6e4d
14 years ago
Ryan Culpepper 5a8f4925ee warning to stderr, not stdout
See PR 11691
  Merge to release branch

original commit: fd3595e7d30b7fcabba84185f8d5c4e6d63aa239
14 years ago
Eli Barzilay a2dba0a992 Some repeated "and and"s and "the the"s, and two more typos.
Closes PR 11229.

original commit: ee138cf2cba3ee32cd755a7b242ec10051180adf
14 years ago
Eli Barzilay d52b3aa1f1 More "~n" -> "\n" changes
original commit: 8e0f8dd39c3744472b450021f003f9cbe8cbcb62
14 years ago
Matthew Flatt 5d47014554 fix empty-matching lexers
original commit: a6723283b8fc9647467b8daea20f17d134bc1b29
15 years ago
Eli Barzilay 8252d4d2b6 "Racunit" -> "Rackunit"
original commit: 7b14a1f585d368bca8967072fbf3530d568e1391
15 years ago
Eli Barzilay 1f8a9aa389 A lot of "DrScheme" -> "DrRacket"s.
original commit: de0cc7771b3f4be098cfa30e552f0acad3436a0e
15 years ago
Matthew Flatt 7fc32399f2 dist-spec repairs
original commit: 1d854085d6df5efcb032e8b800c8f6f960866b50
15 years ago
Jay McCarthy f255a185c3 Renaming rktunit to racunit
original commit: bc5cf30ebe1ba3743f7097d81ebf1297435e0201
15 years ago
Jay McCarthy a9ede393e0 Renaming schemeunit to rktunit and adding compat layer
original commit: f70ffca75665f86a380c3df846c8a63b1e941b8b
15 years ago
Matthew Flatt b0a5e55273 rename all files .ss -> .rkt
original commit: 28b404307793f041bb3363135a2968e283855318
15 years ago
Mike Sperber 1f5943d07b Doc typo fix.
svn: r16516

original commit: a2de64c9ba485ebb88c484b911f0bdc4cce93c26
15 years ago
Robby Findler 2a622c0cf3 added error checking
svn: r16448

original commit: 2f47a882c955baa3111d3685af8c7cf10d364483
15 years ago
Robby Findler 772b804fbd drdr found a 'test suite' that didnt actually have expected results, so I added in expected results and fixed a few bugs that it uncovered
svn: r16362

original commit: 2064861baa303b33fa49b92401d78fb2d363b9cc
15 years ago
Robby Findler 9de497d854 PR 10344
svn: r15545

original commit: 0c73b84692ff89398717e7171a7ec6a968e6249f
16 years ago
Eli Barzilay 9631383261 Newlines at EOFs
svn: r15380

original commit: a70bf64fd9d68487c128282ca85a8964e1592711
16 years ago
Eli Barzilay d64c87af39 The Scribble reader was improved to make it pull out the syntax
punctuations outside of the form, as it does with quote punctuations.
So things like this

  #, @foo{...}

that required the space to make the @foo read as a scribble form are
now better written as

  @#,foo{...}

This changes all such occurrences.  (In case you see this change in
your files and are worried that there might be changes: I mechanically
verified that the result of `read'ing the modified files is identical
to the previous version.)

svn: r15111

original commit: 4288c6c2c703664b6bbd4cd06bd7c2160985b00d
16 years ago
Eli Barzilay 947a0af197 removed lots of "the the"s
svn: r14679

original commit: ff73a5395ee00699c7b85d6ed20bbc3e5d9a2957
16 years ago
Eli Barzilay b64868139a 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

original commit: c0a8a0122200209e38dff1959d79b58f847814db
16 years ago
Robby Findler adbb930fe5 fixed broken syntax error checks
svn: r14187

original commit: afc5ad8d830ea484ee2eb5e4ad309e215ac95e67
16 years ago
Robby Findler 9159d9aef8 added $n-start-pos and $n-end-pos
svn: r14171

original commit: cca41988afc42e7765a9790c0e8bf4446b9920ec
16 years ago
Robby Findler 0a0ea622fc moved to scheme/base language and has it overwrite the output file, if it exists
svn: r14114

original commit: cf791ead47f2b107410406d9c01ea31f7b340e10
16 years ago
Robby Findler 21785542ae moved to scheme/base language and has it overwrite the output file, if it exists
svn: r14113

original commit: ed566b2f7db55febc321da81c5773d755ad4c221
16 years ago
Robby Findler 1e01d982c0 fixed plural in error message
svn: r14099

original commit: fe141d30ba27d7732f8557e682a1e89f56d440a3
16 years ago
Robby Findler 6a25f2e4b3 svn: r14091

							
						
16 years ago
Matthew Flatt cae97d9890 fix more parser-tools doc bugs
svn: r14064

original commit: 7f301ad44637d814d4035a07fb8abb932cfc3309
16 years ago
Matthew Flatt 42c6c37b60 fix docs to explain group-id in yacc
svn: r14062

original commit: 017eb444b435a748b46da78d302b09c115d038c2
16 years ago
Matthew Flatt 54566597c9 fix problem with simplifying module-rename contexts that have marked renamings
svn: r12195

original commit: 05fbd0ffd3f0281934194f08388d76f21bc2de4a
16 years ago
Eli Barzilay 4e1eed718b some info tweaks
svn: r11325

original commit: c23d1e7d83f597e63624985164e1adbfbeefaffa
17 years ago
Matthew Flatt def6e72aed assign authors to manuals
svn: r11287

original commit: 9453aaaccf2f0007bae450c291e1cd29a7a14696
17 years ago