org.nlogo.parse

package org.nlogo.parse

Members list

Type members

Classlikes

class AddVisitor(val addition: (String, String)) extends StatementManipulationVisitor

Attributes

Source
Rewriters.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
AgentTypeChecker.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any
class AmbiguousDelayedBlock(val openBracket: Token, unterminatedTokens: Seq[Token], val internalScope: SymbolTable, val sourceLocation: SourceLocation) extends DelayedBlock

represents a block whose contents we have not yet parsed. Since correctly parsing a block requires knowing its expected type, we have to do it in two passes. It will eventually be resolved into an ReporterBlock, CommandBlock or a literal list.

represents a block whose contents we have not yet parsed. Since correctly parsing a block requires knowing its expected type, we have to do it in two passes. It will eventually be resolved into an ReporterBlock, CommandBlock or a literal list.

Attributes

Source
DelayedBlock.scala
Supertypes
trait DelayedBlock
trait Expression
trait AstNode
class Object
trait Matchable
class Any
Show all
class ArrowLambdaBlock(val openBracket: Token, val arguments: Arguments, val bodyTokens: Seq[Token], closingBracket: Token, val allTokens: Seq[Token], val internalScope: SymbolTable, val sourceLocation: SourceLocation) extends DelayedBlock

Attributes

Source
DelayedBlock.scala
Supertypes
trait DelayedBlock
trait Expression
trait AstNode
class Object
trait Matchable
class Any
Show all

Attributes

Source
ArrowLambdaScoper.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class AstEdit(operations: Map[AstPath, Operation], wsMap: WhitespaceMap)

Attributes

Source
AstEdit.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object AstFormat

Attributes

Companion
class
Source
AstEdit.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
AstFormat.type
case class AstFormat(text: String, operations: Map[AstPath, Operation], instructionToString: Instruction => String, wsMap: FormattingWhitespace)

Attributes

Companion
object
Source
AstEdit.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object AstPath

Attributes

Companion
class
Source
AstPath.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
AstPath.type
case class AstPath(components: Component*)

Attributes

Companion
object
Source
AstPath.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
AstRewriter.scala
Supertypes
class Object
trait Matchable
class Any
class BreedHandler(program: Program) extends NameHandler

Attributes

Source
BreedHandler.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any
class CallHandler(procedures: ProceduresMap) extends NameHandler

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any

This is an AstVisitor that connects "error-message" reporters to their enclosing "carefully" commands.

This is an AstVisitor that connects "error-message" reporters to their enclosing "carefully" commands.

Attributes

Source
CarefullyVisitor.scala
Supertypes
class Object
trait Matchable
class Any
class ClosedVariableFinder(lambdaVarNames: Seq[String]) extends AstFolder[Set[ClosedVariable]]

Attributes

Source
ClosureTagger.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
ClosureTagger.scala
Supertypes
class Object
trait Matchable
class Any
object Colorizer extends TokenColorizer

Attributes

Source
Colorizer.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Colorizer.type

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any
Show all

Attributes

Source
CompilerUtilities.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Constants

Attributes

Source
Constants.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Constants.type

Attributes

Source
ControlFlowVerifier.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
Lambdaizer.scala
Supertypes
class Object
trait Matchable
class Any
object DelayedBlock

Attributes

Companion
trait
Source
DelayedBlock.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait DelayedBlock extends Expression

Attributes

Companion
object
Source
DelayedBlock.scala
Supertypes
trait Expression
trait AstNode
class Object
trait Matchable
class Any
Show all
Known subtypes

Parses procedure bodies.

Parses procedure bodies.

Attributes

Source
ExpressionParser.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ExtensionPrimitiveHandler(extensionManager: ExtensionManager) extends NameHandler

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any
object Formatter

Attributes

Companion
class
Source
Formatter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Formatter.type

Attributes

Companion
object
Source
Formatter.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
WhiteSpace.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FrontEnd extends FrontEnd

Attributes

Companion
trait
Source
FrontEnd.scala
Supertypes
trait FrontEnd
trait FrontEndMain
class Object
trait Matchable
class Any
Show all
Self type
FrontEnd.type

Attributes

Companion
object
Source
FrontEnd.scala
Supertypes
trait FrontEndMain
class Object
trait Matchable
class Any
Show all
Known subtypes
object FrontEnd
trait FrontEndMain extends NetLogoParser

Attributes

Source
FrontEnd.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait FrontEnd
object FrontEnd
object IncludeFile

Attributes

Source
IncludeFile.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class LambdaConversionDialect(delegate: Dialect) extends Dialect

Attributes

Source
Lambdaizer.scala
Supertypes
trait Dialect
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
Lambdaizer.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
Lambdaizer.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
SourceTagger.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
Lambdaizer.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
LetNamer.scala
Supertypes
class Object
trait Matchable
class Any
Self type
LetNamer.type
class LetReducer extends AstTransformer

Attributes

Source
LetReducer.scala
Supertypes
class Object
trait Matchable
class Any
object LetScope

Attributes

Source
LetScoper.scala
Supertypes
class Object
trait Matchable
class Any
Self type
LetScope.type

Attributes

Source
LetScoper.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class LetVerifier extends AstVisitor

Attributes

Source
LetVerifier.scala
Supertypes
trait AstVisitor
class Object
trait Matchable
class Any
class LiteralParser(importHandler: LiteralImportHandler)

The literal parser. This class contains methods which are used to parse literal NetLogo values from a Iterator[Token]. (It hands off all the complicated import-world stuff involving literal agents and literal agentsets to LiteralAgentParser.)

The literal parser. This class contains methods which are used to parse literal NetLogo values from a Iterator[Token]. (It hands off all the complicated import-world stuff involving literal agents and literal agentsets to LiteralAgentParser.)

Attributes

Source
LiteralParser.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
NameHandlers.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Namer(program: Program, procedures: ProceduresMap, procedure: FrontEndProcedure, extensionManager: ExtensionManager) extends TokenTransformer[Unit]

Classifies identifier tokens as commands or reporters.

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
Supertypes
class Object
trait Matchable
class Any
object Namer

Attributes

Companion
class
Source
Namer.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Namer.type
object Namer0 extends Token => Token

Attributes

Source
Namer0.scala
Supertypes
trait Token => Token
class Object
trait Matchable
class Any
Self type
Namer0.type

Attributes

Source
NetLogoParser.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AstRewriter
trait FrontEndMain
trait FrontEnd
object FrontEnd

Attributes

Source
Rewriters.scala
Supertypes
class Object
trait Matchable
class Any
Self type
NoopFolder.type

Attributes

Source
NullImportHandler.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
AstPath.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class PrimitiveHandler extends NameHandler

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any
class RawProcedure(val procedureDeclaration: Procedure, val displayNameOption: Option[String]) extends FrontEndProcedure

Attributes

Source
RawProcedure.scala
Supertypes
class Object
trait Matchable
class Any
class RemovalVisitor(droppedCommand: String) extends PositionalAstFolder[AstEdit]

Attributes

Source
Rewriters.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
Rewriters.scala
Supertypes
class Object
trait Matchable
class Any
class ReplaceVisitor(val addition: (String, String)) extends StatementManipulationVisitor

Attributes

Source
Rewriters.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
NameHandlers.scala
Supertypes
trait NameHandler
class Object
trait Matchable
class Any
Show all
class SeqReader[T](xs: Seq[T], fn: T => Int) extends Reader[T]

Attributes

Source
StructureCombinators.scala
Supertypes
class Reader[T]
class Object
trait Matchable
class Any
class SimpleTransformIterator[A](i: Iterator[Token], transformer: TokenTransformer[A]) extends Iterator[Token]

Attributes

Source
TransformableTokenStream.scala
Supertypes
trait Iterator[Token]
class Object
trait Matchable
class Any
Show all
class SourceTagger(compilationOperand: CompilationOperand) extends AstTransformer

Attributes

Source
SourceTagger.scala
Supertypes
class Object
trait Matchable
class Any
object SplitSet

Attributes

Source
SetSplitter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
SplitSet.type

Attributes

Source
Rewriters.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
StructureChecker.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Source
StructureCombinators.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class StructureCombinators extends Parsers

Attributes

Companion
object
Source
StructureCombinators.scala
Supertypes
trait Parsers
class Object
trait Matchable
class Any

Attributes

Source
StructureConverter.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Source
StructureParser.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class StructureParser(displayName: Option[String], subprogram: Boolean)

Attributes

Companion
object
Source
StructureParser.scala
Supertypes
class Object
trait Matchable
class Any
object SymbolTable

Attributes

Companion
class
Source
SymbolTable.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class SymbolTable(syms: Map[String, SymbolType], uniqueVarID: Int) extends WithFilter[(String, SymbolType), Iterable]

Attributes

Companion
object
Source
SymbolTable.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any
sealed trait SymbolType

Attributes

Companion
object
Source
SymbolType.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SymbolType

Attributes

Companion
trait
Source
SymbolType.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
SymbolType.type

Attributes

Source
TokenMapper.scala
Supertypes
class Object
trait Matchable
class Any
object TokenMapping

Attributes

Source
TokenMapping.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class TokenReader(file: File, tokenizer: TokenizerInterface) extends Iterator[Token]

Attributes

Source
TokenReader.scala
Supertypes
trait Iterator[Token]
class Object
trait Matchable
class Any
Show all
trait TokenTransformer[A]

Attributes

Source
TransformableTokenStream.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LetNamer
class Namer

Attributes

Source
TransformableTokenStream.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object WhiteSpace

Attributes

Companion
class
Source
WhiteSpace.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
WhiteSpace.type
case class WhiteSpace(leading: String, trailing: String, backMargin: String)

Attributes

Companion
object
Source
WhiteSpace.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object WhitespaceMap

Attributes

Companion
class
Source
WhiteSpace.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
WhiteSpace.scala
Supertypes
class Object
trait Matchable
class Any
class _dummycmd(text: String) extends Reporter

Attributes

Source
Rewriters.scala
Supertypes
trait Reporter
trait Instruction
trait TokenHolder
class Object
trait Matchable
class Any
Show all
class _dummyrep(text: String) extends Reporter

Attributes

Source
Rewriters.scala
Supertypes
trait Reporter
trait Instruction
trait TokenHolder
class Object
trait Matchable
class Any
Show all