Changeset 8288 for src/Pugs/Prim/Eval.hs

Show
Ignore:
Timestamp:
12/17/05 23:43:29 (3 years ago)
Author:
gaal
Message:

* Pugs.Parser: Perform symbol importation at use time, not parse time.

This means that the second of two packages that use an exported function
sees it, like it should.
TODO: make this import lexically scoped by default; and honor importation
requests on the C<use> line. Oh, and add tests, too!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Eval.hs

    r8226 r8288  
    4343                [ Var "%*INC", Val . VStr $ decodeUTF8 mod ] 
    4444                , Syn "\\{}"       -- hashref 
    45                     [ Syn "," [ mkStrPair "pathname" (decodeUTF8 pathName) 
    46                               , mkStrPair "relname"  (decodeUTF8 file) ] 
     45                    [ Syn "," [ mkStrPair "fullpath" (decodeUTF8 pathName) 
     46                              , mkStrPair "relpath"  (decodeUTF8 file) ] 
    4747                    ] 
    4848            ] 
    49         str         <- liftIO $ readFile pathName 
     49        str      <- liftIO $ readFile pathName 
    5050        opEval style pathName (decodeUTF8 str) 
    5151    where