Changes between Version 2 and Version 3 of Commentary/Compiler/HscMain


Ignore:
Timestamp:
Sep 7, 2006 4:50:39 PM (8 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/HscMain

    v2 v3  
    1111 
    1212 * {{{HsSyn}}} is parameterised over the types of the variables it contains.  The first three passes of the compiler work like this: 
    13    * The '''parser''' produces {{{HsSyn}}} parameterised by [wiki:Commentary/Compiler/RdrNameType {{{RdrName}}].  To a first approximation, a {{{RdrName}}} is just a string. 
    14    * The '''renamer''' transforms this to {{{HsSyn}}} parameterised by [wiki:Commentary/Compiler/NameType {{{Name}}].  To a first appoximation, a {{{Name}}} is a string plus a {{{Unique}}} (number) that uniquely identifies it. 
    15    * The '''typechecker''' transforms this further, to {{{HsSyn}}} parameterised by [wiki:Commentary/Compiler/IdType {{{Id}}].  To a first approximation, an {{{Id}}} is a {{{Name}}} plus a type. 
     13   * The '''parser''' produces {{{HsSyn}}} parameterised by [wiki:Commentary/Compiler/RdrNameType {{{RdrName}}}].  To a first approximation, a {{{RdrName}}} is just a string. 
     14   * The '''renamer''' transforms this to {{{HsSyn}}} parameterised by {{{[wiki:Commentary/Compiler/NameType Name]}}}.  To a first appoximation, a {{{Name}}} is a string plus a {{{Unique}}} (number) that uniquely identifies it. 
     15   * The '''typechecker''' transforms this further, to {{{HsSyn}}} parameterised by [wiki:Commentary/Compiler/IdType {{{Id}}}].  To a first approximation, an {{{Id}}} is a {{{Name}}} plus a type. 
    1616 These three data types are very important, and have their own pages. 
    1717