kawa.standard
Class ImportFromLibrary

java.lang.Object
  extended by kawa.lang.Syntax
      extended by kawa.standard.ImportFromLibrary
All Implemented Interfaces:
Named, Printable

public class ImportFromLibrary
extends Syntax

Implement R6RS import form. This actually only implements simplified import; we assumes it has been simplified by import macro defined in syntax.scm.


Field Summary
 java.lang.String[] classPrefixPath
           
static ImportFromLibrary instance
           
 
Constructor Summary
ImportFromLibrary()
           
 
Method Summary
 Expression rewriteForm(Pair form, Translator tr)
           
 boolean scanForDefinitions(Pair st, java.util.Vector forms, ScopeExp defs, Translator tr)
          Check if a statement is a definition, for initial pass.
 
Methods inherited from class kawa.lang.Syntax
getName, getSymbol, print, rewrite, rewriteForm, scanForm, setName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final ImportFromLibrary instance

classPrefixPath

public java.lang.String[] classPrefixPath
Constructor Detail

ImportFromLibrary

public ImportFromLibrary()
Method Detail

scanForDefinitions

public boolean scanForDefinitions(Pair st,
                                  java.util.Vector forms,
                                  ScopeExp defs,
                                  Translator tr)
Description copied from class: Syntax
Check if a statement is a definition, for initial pass. Semi-deprecated - should convert calls to use scanForm.

Overrides:
scanForDefinitions in class Syntax
Parameters:
st - the statement to check
forms - where to append the (possibly-modified) statement
defs - where to add Declarations for found definitions
tr - the compilation state
Returns:
true on success

rewriteForm

public Expression rewriteForm(Pair form,
                              Translator tr)
Overrides:
rewriteForm in class Syntax