@@ -31,9 +31,9 @@ lib/ - bindings to LLVM
31
31
32
32
The files concerned purely with syntax -- that is, the AST, parser,
33
33
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 . .
37
37
38
38
The entry-point for the compiler is main() in driver/rustc.rs, and
39
39
this file sequences the various parts together.
@@ -42,7 +42,7 @@ this file sequences the various parts together.
42
42
The 3 central data structures:
43
43
------------------------------
44
44
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
46
46
after parsing, but it depends on mutable context data structures
47
47
(mainly hash maps) to give it meaning.
48
48
@@ -78,8 +78,8 @@ Control and information flow within the compiler:
78
78
- main() in driver/rustc.rs assumes control on startup. Options are
79
79
parsed, platform is detected, etc.
80
80
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.
83
83
84
84
- Multiple middle-end passes (middle/resolve.rs, middle/typeck.rs)
85
85
analyze the semantics of the resulting AST. Each pass generates new
0 commit comments