Package com.scriptbasic.interfaces
package com.scriptbasic.interfaces
-
ClassDescriptionAnything that can be the result of an analysis be it either syntax or lexical analysis implements this interface.Analyzer<T extends AnalysisResult>Classes that analyze something implement this interface.This is the exception that the BASIC program throws when there is some error during the execution.A
BuildableProgramis aProgramthat also provides methods needed to build up the program code during the BASIC source code analysis.Classes that analyze BASIC program lines and resultCommands.ACommandFactoryanalyzes a BASIC program line and creates aCommandthat is the result of the analysis.Implementing classes should be able to build configuration from some textual source, or programatically.Evaluator evaluates something (probably anExpressionand result a value.An expression is a numeric expression, with function calls, object method calls, operators, parenthesis and so on.GenericList<Z extends AnalysisResult>A variable map interface that handles the global and local variables.An interpreter instance executes a program.Implementing class should recognize a string as a keyword or should tell that the string is not a keyword.A generic lexical analyzer that reads the characters from a reader and returns the LexicalElements one after the other.A single lexical element that was created by the LexicalAnalyerA Lexical Element Analyzer analyzes the characters coming from a reader and create a LexicalElement from it.A lexical analyzer that supports syntax analyzers that analyze line oriented language.ListAnalyzer<T extends AnalysisResult>A variable map structure that can manage many maps in a stack structure.When a BASIC program has a reference to an object that is an instance of a class that implements Magic.Bean setting a field and getting the value of a field is done through the "magic" methods defined in this interface instead of setting the field or getting the value of the field through the getters/setters or accessing the fields directly.Keep a registry of methods.Every object that represents a structure that is nested in the source code should implement this interface.Object implementing this interface keep track of the programming structures that can be nested into each other.The program that was created by the syntax analyzer.Checks that a file is included only once.Any object that is some way bound to a location of the BASIC program.This interface is usually implemented someSourceProviderimplementations.A syntax analyzer analyzes a program source using the result of the lexical analyzer and create an executable program.Manage local or global variables.