Commit Graph

9 Commits

Author SHA1 Message Date
Eli Barzilay
cec73f5652 Newlines at EOFs scan. 2013-02-23 02:09:56 -05:00
Danny Yoo
7ab7d97f01 Move cfg-parser from the algol60 collection to parser-tools.
Discussed in: http://lists.racket-lang.org/dev/archive/2013-January/011416.html

A stub library in algol60/cfg-parser will re-export the contents of
parser-tools/algol60 for backwards compatibility.
2013-01-15 14:19:15 -07:00
Danny Yoo
69ae77a253 Gracefully handle the case where the token stream just contains the END token and an error occurs. 2013-01-11 14:00:24 -07:00
Danny Yoo
6e21e34ec7 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.
2013-01-09 10:46:18 -07:00
Danny Yoo
4ff4c677bd Modernize cfg-parser from mzscheme to Racket libraries. 2012-12-13 11:58:40 -07:00
Robby Findler
c0b928c758 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
2012-06-20 10:28:53 -05:00
Matthew Flatt
c1ceebb92a fix cfg-parser' to more closely match parser' 2012-01-06 10:43:10 +01:00
David Van Horn
760a58b65d Fixes more spelling errors. 2011-02-04 19:44:13 -07:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00