Changeset 16435

Show
Ignore:
Timestamp:
05/18/07 21:54:54 (18 months ago)
Author:
audreyt
Message:

* Pugs.Parser.Util: Add parameter variables into the known-variable

set to be closed over.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Parser/Util.hs

    r16417 r16435  
    3030    let env     = s_env state 
    3131        lexPads = (PCompiling compPad:envLexPads env) 
     32        protoVars = Map.map (const compPad) (padEntries $ s_protoPad state) 
    3233 
    3334    put state 
     
    3839            } 
    3940        , s_protoPad        = emptyPad 
     41        , s_knownVars       = s_knownVars state `Map.union` protoVars 
    4042        } 
    4143