public class BindDecls
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
allowShadowing |
Type |
booleanType |
Procedure |
compareEquals |
java.lang.Object |
ifKeyword |
static BindDecls |
instance |
boolean |
makeConstant |
Constructor and Description |
---|
BindDecls() |
Modifier and Type | Method and Description |
---|---|
Expression |
compareLiteral(Declaration param,
QuoteExp literal) |
Declaration |
define(Symbol name,
TemplateScope templateScope,
ScopeExp scope,
Translator comp) |
QuoteExp |
literalPattern(java.lang.Object patval,
Translator comp) |
void |
parseBracketListPattern(Pair patpair,
int scanNesting,
ScopeExp scope,
Declaration decl,
Translator comp)
Handle patterns of the form {@code [pat1 ...
|
java.lang.Object[] |
parsePatternCar(Pair patList,
Expression init,
TemplateScope templateScope,
int scanNesting,
ScopeExp scope,
Translator comp) |
java.lang.Object[] |
parsePatternCar(Pair patList,
int scanNesting,
ScopeExp scope,
Translator comp)
Parse a declaration or more generally a pattern.
|
java.lang.Object |
parsePatternNext(Pair patList,
Translator comp) |
static void |
setInitializer(Declaration decl,
Expression init,
ScopeExp scope,
Translator comp) |
public static final BindDecls instance
public boolean allowShadowing
public boolean makeConstant
public java.lang.Object ifKeyword
public Procedure compareEquals
public Type booleanType
public Declaration define(Symbol name, TemplateScope templateScope, ScopeExp scope, Translator comp)
public java.lang.Object parsePatternNext(Pair patList, Translator comp)
public java.lang.Object[] parsePatternCar(Pair patList, int scanNesting, ScopeExp scope, Translator comp)
public java.lang.Object[] parsePatternCar(Pair patList, Expression init, TemplateScope templateScope, int scanNesting, ScopeExp scope, Translator comp)
public void parseBracketListPattern(Pair patpair, int scanNesting, ScopeExp scope, Declaration decl, Translator comp)
[pat1 ... patN]
.public static void setInitializer(Declaration decl, Expression init, ScopeExp scope, Translator comp)
public QuoteExp literalPattern(java.lang.Object patval, Translator comp)
public Expression compareLiteral(Declaration param, QuoteExp literal)