Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0863ac2

Browse files
committedJun 9, 2012
Update READMEs and comments to reflect "rustsyntax" -> "syntax" change
1 parent 7c0fd85 commit 0863ac2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎src/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rustc/ The self-hosted compiler
66

77
libcore/ The core library (imported and linked by default)
88
libstd/ The standard library (slightly more peripheral code)
9-
librustsyntax/ The Rust parser and pretty-printer
9+
libsyntax/ The Rust parser and pretty-printer
1010

1111
rt/ The runtime system
1212
rt/rust_*.cpp - The majority of the runtime services

‎src/rustc/README.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ lib/ - bindings to LLVM
3131

3232
The files concerned purely with syntax -- that is, the AST, parser,
3333
pretty-printer, lexer, macro expander, and utilities for traversing
34-
ASTs -- are in a separate crate called "rustsyntax", whose files are
35-
in ./../librustsyntax if the parent directory of front/, middle/,
36-
back/, and so on is . .
34+
ASTs -- are in a separate crate called "syntax", whose files are in
35+
./../libsyntax if the parent directory of front/, middle/, back/, and
36+
so on is . .
3737

3838
The entry-point for the compiler is main() in driver/rustc.rs, and
3939
this file sequences the various parts together.
@@ -42,7 +42,7 @@ this file sequences the various parts together.
4242
The 3 central data structures:
4343
------------------------------
4444

45-
#1: ../librustsyntax/ast.rs defines the AST. The AST is treated as immutable
45+
#1: ../libsyntax/ast.rs defines the AST. The AST is treated as immutable
4646
after parsing, but it depends on mutable context data structures
4747
(mainly hash maps) to give it meaning.
4848

@@ -78,8 +78,8 @@ Control and information flow within the compiler:
7878
- main() in driver/rustc.rs assumes control on startup. Options are
7979
parsed, platform is detected, etc.
8080

81-
- librustsyntax/parse/parser.rs parses the input files and produces an
82-
AST that represents the input crate.
81+
- libsyntax/parse/parser.rs parses the input files and produces an AST
82+
that represents the input crate.
8383

8484
- Multiple middle-end passes (middle/resolve.rs, middle/typeck.rs)
8585
analyze the semantics of the resulting AST. Each pass generates new

‎src/rustc/middle/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ type substs = {
343343
};
344344

345345
// NB: If you change this, you'll probably want to change the corresponding
346-
// AST structure in front/ast::rs as well.
346+
// AST structure in libsyntax/ast.rs as well.
347347
enum sty {
348348
ty_nil,
349349
ty_bot,

0 commit comments

Comments
 (0)
Please sign in to comment.