org.nlogo.parse.Namer
See theNamer companion object
class Namer(program: Program, procedures: ProceduresMap, procedure: FrontEndProcedure, extensionManager: ExtensionManager) extends TokenTransformer[Unit]
Classifies identifier tokens as commands or reporters.
This is basically just a function from Iterator[Token] to Iterator[Token]. Most tokens pass through unchanged, but each token of type Ident is replaced with a new token of type TokenType.Command or TokenType.Reporter.
One additional check is performed: checkProcedureName makes sure the name (and input names) of each procedure aren't also the name of anything else. (That check happens here because here is where the knowledge of what names are taken resides.)
Attributes
- Companion
- object
- Source
- Namer.scala
- Graph
-
- Supertypes
Members list
In this article