org.nlogo.compile.middle
Members list
Packages
Type members
Classlikes
Attributes
- Source
- ASTBackifier.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Source
- ScopeTransformer.scala
- Supertypes
- Self type
-
ClosedLetFolder.type
Attributes
- Source
- FrontMiddleBridge.scala
- Supertypes
- Self type
-
FrontMiddleBridge.type
Attributes
- Source
- ScopeTransformer.scala
- Supertypes
- Self type
-
IntroducedLetFolder.type
Removes the bodies of command lambdas and makes them into separate "child" procedures.
Removes the bodies of command lambdas and makes them into separate "child" procedures.
Attributes
- Source
- LambdaLifter.scala
- Supertypes
Attributes
- Source
- LambdaVariableVisitor.scala
- Supertypes
This is an AstVisitor that optimizes "let" variables by converting them to "locals" variables instead whenever possible, since the locals mechanism is speedier than the let mechanism.
This is an AstVisitor that optimizes "let" variables by converting them to "locals" variables instead whenever possible, since the locals mechanism is speedier than the let mechanism.
"Whenever possible" is "whenever it's not inside an ask". We must find and convert two prims: _let and _letvariable. We also must add the variable to the procedure's locals list.
We also do the same thing with "repeat", which by default uses the "let" mechanism, but must be changed to use the "locals" mechanism when used outside "ask".
Attributes
- Source
- LocalsVisitor.scala
- Supertypes
Attributes
- Source
- MiddleEnd.scala
- Supertypes
- Self type
-
MiddleEnd.type
Attributes
- Source
- Optimizer.scala
- Supertypes
Attributes
- Source
- ReferenceTransformer.scala
- Supertypes
Attributes
- Source
- ScopeTransformer.scala
- Supertypes
an AstVisitor that handles the set command. We convert constructs like "_set(var, value)" into more specific things like "_setprocedurevariable(value)" or whatever, where the new set* command knows internally the variable it's setting.
an AstVisitor that handles the set command. We convert constructs like "_set(var, value)" into more specific things like "_setprocedurevariable(value)" or whatever, where the new set* command knows internally the variable it's setting.
Attributes
- Companion
- object
- Source
- SetVisitor.scala
- Supertypes
Attributes
- Companion
- class
- Source
- SetVisitor.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SetVisitor.type
Converts _of(_turtlevariable,...) to _turtlevariableof(...) and _of(_patchvariable,...) to _patchvariableof(...) for better efficiency.
Converts _of(_turtlevariable,...) to _turtlevariableof(...) and _of(_patchvariable,...) to _patchvariableof(...) for better efficiency.
Attributes
- Source
- SimpleOfVisitor.scala
- Supertypes