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


Ignore:
Timestamp:
Sep 7, 2006 4:51:58 PM (9 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/HscMain

    v3 v4  
    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