Uses of Interface
org.ek9lang.compiler.tokenizer.IToken
Package
Description
B - For the EK9 compiler itself.
Common parts of processing that can be reused across various phases.
The directives are really aimed at helping the creation of the EK9 language, but they
maybe very useful in the early stages of adoption of ek9 (should there be any).
E - Initial Symbol definition by traversing the 'ANTLR' - 'AST'.
G - Full Symbol Resolution can now take place.
Contains critical general components used in the
Ek9Compiler
listeners.
This is the main source of EK9 Symbols used within the compiler.
Focuses on aspects of Lexing and some parts of Parser configuration.
-
Uses of IToken in org.ek9lang.compiler
Modifier and TypeMethodDescriptionCompilableProgram.getOriginalReferenceLocation
(String moduleName, SymbolSearch search) Locates the token when the first reference was established. -
Uses of IToken in org.ek9lang.compiler.common
Modifier and TypeMethodDescriptionvoid
ErrorListener.directiveError
(IToken offendingToken, String msg, ErrorListener.SemanticClassification classification) Create a new error based on the directive.ErrorListener.getShortNameOfSourceFile
(IToken token) Get the filename (but not full path) of the source file.void
ErrorListener.raiseReturningNotRequired
(IToken token, String msg) Create new semantic error.void
ErrorListener.raiseReturningRequired
(IToken token, String msg) Create new semantic error.void
ErrorListener.semanticError
(IToken offendingToken, String msg, ErrorListener.SemanticClassification classification) Create new semantic error.void
ErrorListener.semanticError
(IToken offendingToken, String msg, ErrorListener.SemanticClassification classification, MatchResults results) Create new semantic error.void
ErrorListener.semanticWarning
(IToken offendingToken, String msg, ErrorListener.SemanticClassification classification) Issue a semantic warning.boolean
-
Uses of IToken in org.ek9lang.compiler.directives
Modifier and TypeMethodDescriptionDirective.getDirectiveToken()
Provide a token from the source, by default if not possible supply synthetic.ErrorDirective.getDirectiveToken()
ResolutionDirective.getDirectiveToken()
DirectiveSpec.token()
Returns the value of thetoken
record component.ModifierConstructorDescriptionDirectiveSpec
(IToken token, CompilationPhase phase, ISymbol.SymbolCategory symbolCategory, String symbolName, String additionalName, int lineNumber) Creates an instance of aDirectiveSpec
record class.ErrorDirective
(IToken token, CompilationPhase phase, ErrorListener.SemanticClassification classification, int lineNumber) A new error style directive. -
Uses of IToken in org.ek9lang.compiler.phase1
Modifier and TypeMethodDescriptionConflictingTokens.firstUse()
Returns the value of thefirstUse
record component.ConflictingTokens.tokenInError()
Returns the value of thetokenInError
record component.Modifier and TypeMethodDescriptionvoid
void
void
GenericConstructorOrError.accept
(IToken token, MethodSymbol methodSymbol) void
void
void
ProgramArgumentsOrError.accept
(IToken token, MethodSymbol methodSymbol) void
ProgramReturnOrError.accept
(IToken token, MethodSymbol methodSymbol) ModifierConstructorDescription(package private)
ConflictingTokens
(IToken tokenInError, IToken firstUse, ISymbol symbol) Creates an instance of aConflictingTokens
record class. -
Uses of IToken in org.ek9lang.compiler.phase3
Modifier and TypeMethodDescriptionTypeCompatibilityData.location()
Returns the value of thelocation
record component.CheckOperatorData.operatorUseToken()
Returns the value of theoperatorUseToken
record component.CovarianceData.token()
Returns the value of thetoken
record component.DelegateFunctionData.token()
Returns the value of thetoken
record component.FunctionData.token()
Returns the value of thetoken
record component.ParametersData.token()
Returns the value of thetoken
record component.SymbolAccessData.token()
Returns the value of thetoken
record component.Modifier and TypeMethodDescriptionvoid
void
void
void
void
ResolveMethodOrError.apply
(IToken errorLocation, MethodSearchInScope searchOnAggregate) boolean
boolean
ModifierConstructorDescription(package private)
CheckOperatorData
(ISymbol symbol, IToken operatorUseToken, MethodSymbolSearch search) Creates an instance of aCheckOperatorData
record class.(package private)
CovarianceData
(IToken token, String errorMessage, ISymbol fromVar, ISymbol toVar) Creates an instance of aCovarianceData
record class.(package private)
DelegateFunctionData
(IToken token, ISymbol delegateSymbol, List<ISymbol> callArgumentTypes) Creates an instance of aDelegateFunctionData
record class.(package private)
FunctionData
(IToken token, FunctionSymbol function, List<ISymbol> callArgumentTypes) Creates an instance of aFunctionData
record class.(package private)
Creates an instance of aParametersData
record class.(package private)
Creates an instance of aSymbolAccessData
record class.(package private)
TypeCompatibilityData
(IToken location, ISymbol lhs, ISymbol rhs) Creates an instance of aTypeCompatibilityData
record class. -
Uses of IToken in org.ek9lang.compiler.support
Modifier and TypeMethodDescriptionCommonTypeDeterminationDetails.lineToken()
Returns the value of thelineToken
record component.ParameterisedTypeData.location()
Returns the value of thelocation
record component.Modifier and TypeMethodDescriptionvoid
CheckForDuplicateOperationsOnGeneric.accept
(IToken errorLocationToken, IAggregateSymbol aggregate) void
InvalidEnumeratedValue.accept
(IToken newEnumeratedValueToken, org.antlr.v4.runtime.Token existingEnumeratedValueToken) void
NoDuplicateOperationsOrError.accept
(IToken errorLocationToken, IAggregateSymbol aggregate) SymbolFactory.newExpressionSymbol
(IToken token, String name) Create a new expression symbol place-holder.SymbolFactory.newExpressionSymbol
(IToken token, String name, Optional<ISymbol> ofType) Create a new expression symbol place-holder.SymbolFactory.newGeneralSymbol
(IToken token, String name) Just for general symbols, like references.SymbolFactory.newLiteral
(IToken start, String name) Create a new aggregate that represents an EK9 literal value.SymbolFactory.newVariable
(String name, IToken token, boolean nullAllowed, boolean injectionExpected) Create new variable typically when looking to create simulated variable.ResolveOrDefineTypes.resolveTypeByParameterizedType
(IToken triggerToken, EK9Parser.ParameterisedTypeContext ctx) ResolveOrDefineTypes.resolveTypeByTypeDef
(IToken triggerToken, EK9Parser.TypeDefContext ctx) Resolves the type for a type def, can trigger recursion.protected void
CheckReturns.returningParamOrError
(boolean isStatement, IToken parentToken, EK9Parser.ReturningParamContext returningParamCtx) ModifierConstructorDescriptionCommonTypeDeterminationDetails
(IToken lineToken, List<ISymbol> argumentSymbols, List<ISymbol> argumentTypes) Creates an instance of aCommonTypeDeterminationDetails
record class.ParameterisedTypeData
(IToken location, ISymbol genericTypeSymbol, List<ISymbol> typeArguments) Creates an instance of aParameterisedTypeData
record class. -
Uses of IToken in org.ek9lang.compiler.symbols
Modifier and TypeMethodDescriptionIScope.getEncounteredExceptionToken()
ScopedSymbol.getEncounteredExceptionToken()
SymbolTable.getEncounteredExceptionToken()
ISymbol.getInitialisedBy()
Symbol.getInitialisedBy()
ISymbol.getSourceToken()
ITokenReference.getSourceToken()
Symbol.getSourceToken()
Modifier and TypeMethodDescriptionModuleScope.getOriginalReferenceLocation
(SymbolSearch search) Returns the original location a reference was made (if present).Modifier and TypeMethodDescriptionvoid
ModuleScope.defineReference
(IToken token, ISymbol symbol) Add a reference to another construct in another module, so it can be used in shorthand form in this module.void
IScope.setEncounteredExceptionToken
(IToken encounteredExceptionToken) void
ScopedSymbol.setEncounteredExceptionToken
(IToken encounteredExceptionToken) void
SymbolTable.setEncounteredExceptionToken
(IToken encounteredExceptionToken) void
ISymbol.setInitialisedBy
(IToken initialisedBy) void
Symbol.setInitialisedBy
(IToken initialisedBy) void
ExpressionSymbol.setSourceToken
(IToken sourceToken) void
ITokenReference.setSourceToken
(IToken sourceToken) void
Symbol.setSourceToken
(IToken sourceToken) -
Uses of IToken in org.ek9lang.compiler.tokenizer
Modifier and TypeClassDescriptionclass
Models a token that we need to create as a synthetic token.ModifierConstructorDescriptionTokenResult
(IToken token, List<IToken> tokensInLine, int positionInLine) Create a valid token result with the token its position and the other surrounding tokens.ModifierConstructorDescriptionTokenResult
(IToken token, List<IToken> tokensInLine, int positionInLine) Create a valid token result with the token its position and the other surrounding tokens.