@@ -35,19 +35,19 @@ ASTs -- are in a separate crate called "syntax", whose files are in
35
35
./../libsyntax, where . is the current directory (that is, the parent
36
36
directory of front/, middle/, back/, and so on).
37
37
38
- The entry-point for the compiler is main() in driver/ rustc.rs , and
38
+ The entry-point for the compiler is main() in rustc.rc , and
39
39
this file sequences the various parts together.
40
40
41
41
42
42
The 3 central data structures:
43
43
------------------------------
44
44
45
- #1: ../libsyntax/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
49
49
- Many -- though not all -- nodes within this data structure are
50
- wrapped in the type spanned<T>, meaning that the front-end has
50
+ wrapped in the type ` spanned<T>` , meaning that the front-end has
51
51
marked the input coordinates of that node. The member .node is
52
52
the data itself, the member .span is the input location (file,
53
53
line, column; both low and high).
@@ -78,7 +78,7 @@ Control and information flow within the compiler:
78
78
- main() in rustc.rc assumes control on startup. Options are
79
79
parsed, platform is detected, etc.
80
80
81
- - libsyntax/parse/parser.rs parses the input files and produces an AST
81
+ - ./../ libsyntax/parse/parser.rs parses the input files and produces an AST
82
82
that represents the input crate.
83
83
84
84
- Multiple middle-end passes (middle/resolve.rs, middle/typeck.rs)
0 commit comments