Package kawa.standard
Class let
- java.lang.Object
-
- kawa.lang.Syntax
-
- kawa.standard.let
-
-
Field Summary
Fields Modifier and Type Field Description static let
let
protected boolean
settingProcedures
Used for constructs such as FLET, where we intend to set a function binding rather than an ordinary binding.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
maybeSetProcedure(Declaration decl)
Set the procedure flag of a declaration if binding a function property.Expression
rewrite(Object obj, Translator tr)
Re-write an expression that is an "application" of this Syntax object.-
Methods inherited from class kawa.lang.Syntax
getName, getSymbol, print, rewriteForm, scanForDefinitions, scanForm, setName, setName
-
-
-
-
Field Detail
-
let
public static final let let
-
settingProcedures
protected boolean settingProcedures
Used for constructs such as FLET, where we intend to set a function binding rather than an ordinary binding.
-
-
Constructor Detail
-
let
public let(String name, boolean settingProcedures)
-
-
Method Detail
-
rewrite
public Expression rewrite(Object obj, Translator tr)
Description copied from class:Syntax
Re-write an expression that is an "application" of this Syntax object.
-
maybeSetProcedure
protected void maybeSetProcedure(Declaration decl)
Set the procedure flag of a declaration if binding a function property. This is used for FLET .vs. LET distinction, wheresettingProcedures
is true for FLET, and false for LET.- Parameters:
decl
- The declaration to possibly set thePROCEDURE
flag.
-
-