Uses of Interface
org.ek9lang.compiler.tokenizer.IToken
Packages that use 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
Methods in org.ek9lang.compiler that return types with arguments of type ITokenModifier and TypeMethodDescriptionCompilableProgram.getOriginalReferenceLocation(String moduleName, SymbolSearch search) Locates the token when the first reference was established. -
Uses of IToken in org.ek9lang.compiler.common
Classes in org.ek9lang.compiler.common that implement interfaces with type arguments of type ITokenModifier and TypeClassDescriptionclassIs the token a simple assignment, i.e.Methods in org.ek9lang.compiler.common with parameters of type ITokenModifier and TypeMethodDescriptionvoidErrorListener.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.voidErrorListener.raiseReturningNotRequired(IToken token, String msg) Create new semantic error.voidErrorListener.raiseReturningRequired(IToken token, String msg) Create new semantic error.voidErrorListener.semanticError(IToken offendingToken, String msg, ErrorListener.SemanticClassification classification) Create new semantic error.voidErrorListener.semanticError(IToken offendingToken, String msg, ErrorListener.SemanticClassification classification, MatchResults results) Create new semantic error.voidErrorListener.semanticWarning(IToken offendingToken, String msg, ErrorListener.SemanticClassification classification) Issue a semantic warning.boolean -
Uses of IToken in org.ek9lang.compiler.directives
Methods in org.ek9lang.compiler.directives that return ITokenModifier 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 thetokenrecord component.Constructors in org.ek9lang.compiler.directives with parameters of type ITokenModifierConstructorDescriptionDirectiveSpec(IToken token, CompilationPhase phase, SymbolCategory symbolCategory, String symbolName, String additionalName, int lineNumber) Creates an instance of aDirectiveSpecrecord class.ErrorDirective(IToken token, CompilationPhase phase, ErrorListener.SemanticClassification classification, int lineNumber) A new error style directive. -
Uses of IToken in org.ek9lang.compiler.ir.support
Methods in org.ek9lang.compiler.ir.support with parameters of type ITokenModifier and TypeMethodDescriptionstatic DebugInfoDebugInfo.from(CompilableSource compilableSource, IToken token) Create DebugInfo from an ISymbol's source token. -
Uses of IToken in org.ek9lang.compiler.phase1
Classes in org.ek9lang.compiler.phase1 that implement interfaces with type arguments of type ITokenModifier and TypeClassDescription(package private) final classCreates a suitable scope name for a token position.(package private) final classError when a reference is made, but it cannot be resolved.(package private) final classTo be called when an unreachable statement is encountered to emit an error.(package private) final classTo be called when an unreachable statement is encountered to emit an error.(package private) final classJust check is a scope has normal termination.(package private) final classOnly use when code being checked prohibits use in outer generic context.(package private) final classA program can only accept specific types of arguments to it.(package private) final classA program can only return an Integer (exit code).Methods in org.ek9lang.compiler.phase1 that return ITokenModifier and TypeMethodDescriptionConflictingTokens.firstUse()Returns the value of thefirstUserecord component.ConflictingTokens.tokenInError()Returns the value of thetokenInErrorrecord component.Methods in org.ek9lang.compiler.phase1 with parameters of type ITokenModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidProgramArgumentsOrError.accept(IToken token, MethodSymbol methodSymbol) voidProgramReturnOrError.accept(IToken token, MethodSymbol methodSymbol) Constructors in org.ek9lang.compiler.phase1 with parameters of type ITokenModifierConstructorDescription(package private)ConflictingTokens(IToken tokenInError, IToken firstUse, ISymbol symbol) Creates an instance of aConflictingTokensrecord class. -
Uses of IToken in org.ek9lang.compiler.phase3
Classes in org.ek9lang.compiler.phase3 that implement interfaces with type arguments of type ITokenModifier and TypeClassDescription(package private) final classChecks the assignments for operator : := = and :=? that's all.(package private) classGiven a symbol, this check that the type that the symbol has can support the '<=>' operator.(package private) classGiven a symbol, this check that the type that the symbol has can support the '--' operator.(package private) final classChecks that the symbol passed has a type and that the type is compatible with an EK9 Exception.(package private) classGiven a symbol, this check that the type that the symbol has can support the '#?' operator.(package private) classGiven a symbol, this check that the type that the symbol has can support the '++' operator.(package private) classChecks if a type has the $ 'toString' method or a 'promotion' #? to a String method.(package private) final classGiven a symbol, this check that the type that the symbol has can support the '?' operation.(package private) final classChecks if a symbol can be mutated, this is nothing to do with a pure context.(package private) final classTypically used when a direct call is being bad on the symbol.(package private) classProvides a common set of operations for checking operators.(package private) final classJust check that with in the current 'context' - if pure that the processing call is pure.(package private) final classGiven a search for a method from an aggregate - and include supers/traits etc., this function will try and locate the method.Methods in org.ek9lang.compiler.phase3 that return ITokenModifier and TypeMethodDescriptionAggregateMethodData.location()Returns the value of thelocationrecord component.TypeCompatibilityData.location()Returns the value of thelocationrecord component.CheckOperatorData.operatorUseToken()Returns the value of theoperatorUseTokenrecord component.CovarianceData.token()Returns the value of thetokenrecord component.DelegateFunctionData.token()Returns the value of thetokenrecord component.FunctionData.token()Returns the value of thetokenrecord component.ParametersData.token()Returns the value of thetokenrecord component.SymbolAccessData.token()Returns the value of thetokenrecord component.Methods in org.ek9lang.compiler.phase3 with parameters of type ITokenModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidResolveMethodOrError.apply(IToken errorLocation, MethodSearchInScope searchOnAggregate) booleanbooleanbooleanConstructors in org.ek9lang.compiler.phase3 with parameters of type ITokenModifierConstructorDescription(package private)AggregateMethodData(IToken location, IAggregateSymbol aggregate, MethodSymbol methodSymbol) Creates an instance of aAggregateMethodDatarecord class.(package private)CheckOperatorData(ISymbol symbol, IToken operatorUseToken, MethodSymbolSearch search) Creates an instance of aCheckOperatorDatarecord class.(package private)CovarianceData(IToken token, String errorMessage, ISymbol fromVar, ISymbol toVar) Creates an instance of aCovarianceDatarecord class.(package private)DelegateFunctionData(IToken token, ISymbol delegateSymbol, List<ISymbol> callArgumentTypes) Creates an instance of aDelegateFunctionDatarecord class.(package private)FunctionData(IToken token, FunctionSymbol function, List<ISymbol> callArgumentTypes) Creates an instance of aFunctionDatarecord class.(package private)Creates an instance of aParametersDatarecord class.(package private)Creates an instance of aSymbolAccessDatarecord class.(package private)TypeCompatibilityData(IToken location, ISymbol lhs, ISymbol rhs) Creates an instance of aTypeCompatibilityDatarecord class. -
Uses of IToken in org.ek9lang.compiler.phase7.generation
Classes in org.ek9lang.compiler.phase7.generation that implement interfaces with type arguments of type ITokenModifier and TypeClassDescriptionfinal classCreates the debug information for the symbol provided.Methods in org.ek9lang.compiler.phase7.generation with parameters of type ITokenModifier and TypeMethodDescriptionIRGenerationContext.createDebugInfo(IToken token) Create debug info from an EK9 IToken.IRInstructionBuilder.createDebugInfo(IToken token) Create debug info from an EK9 IToken. -
Uses of IToken in org.ek9lang.compiler.support
Classes in org.ek9lang.compiler.support that implement interfaces with type arguments of type ITokenModifier and TypeClassDescriptionfinal classIf the aggregate is a generic parameterised type this function triggers a check for duplicated methods.classGiven a list of symbols (normally variables), this code will get the type from each of those symbols.(package private) final classError when the definition of an enumerated values could be invalid.classExtracts a string for the form "on line 6 in 'filename.ek9'".final classDoes a simple check (excluding any inheritance) for duplicated operations (methods, operators) on any sort of Aggregate, i.e.Methods in org.ek9lang.compiler.support that return ITokenModifier and TypeMethodDescriptionCommonTypeDeterminationDetails.lineToken()Returns the value of thelineTokenrecord component.ParameterisedTypeData.location()Returns the value of thelocationrecord component.Methods in org.ek9lang.compiler.support with parameters of type ITokenModifier and TypeMethodDescriptionvoidCheckForDuplicateOperationsOnGeneric.accept(IToken errorLocationToken, IAggregateSymbol aggregate) voidInvalidEnumeratedValue.accept(IToken newEnumeratedValueToken, org.antlr.v4.runtime.Token existingEnumeratedValueToken) voidNoDuplicateOperationsOrError.accept(IToken errorLocationToken, IAggregateSymbol aggregate) protected voidCommonFactory.configureAggregate(AggregateSymbol aggregate, IToken start) protected voidCommonFactory.configureSymbol(ISymbol symbol, IToken start) CommonFactory.getDefaultOperatorInitializer(IToken startToken) 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.BasicSymbolFactory.newLiteral(IToken start, String name) Create a new aggregate that represents an EK9 literal value.SymbolFactory.newLiteral(IToken start, String name) Create a new aggregate that represents an EK9 literal value.BasicSymbolFactory.newVariable(String name, IToken token, boolean nullAllowed, boolean injectionExpected) Create new variable typically when looking to create simulated variable.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 voidCheckReturns.returningParamOrError(boolean isStatement, IToken parentToken, EK9Parser.ReturningParamContext returningParamCtx) Constructors in org.ek9lang.compiler.support with parameters of type ITokenModifierConstructorDescriptionCommonTypeDeterminationDetails(IToken lineToken, List<ISymbol> argumentSymbols, List<ISymbol> argumentTypes) Creates an instance of aCommonTypeDeterminationDetailsrecord class.ParameterisedTypeData(IToken location, ISymbol genericTypeSymbol, List<ISymbol> typeArguments) Creates an instance of aParameterisedTypeDatarecord class. -
Uses of IToken in org.ek9lang.compiler.symbols
Methods in org.ek9lang.compiler.symbols that return ITokenModifier and TypeMethodDescriptionIScope.getEncounteredExceptionToken()ScopedSymbol.getEncounteredExceptionToken()SymbolTable.getEncounteredExceptionToken()ISymbol.getInitialisedBy()Symbol.getInitialisedBy()ISymbol.getSourceToken()ITokenReference.getSourceToken()Symbol.getSourceToken()Methods in org.ek9lang.compiler.symbols that return types with arguments of type ITokenModifier and TypeMethodDescriptionModuleScope.getOriginalReferenceLocation(SymbolSearch search) Returns the original location a reference was made (if present).Methods in org.ek9lang.compiler.symbols with parameters of type ITokenModifier and TypeMethodDescriptionvoidModuleScope.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.voidIScope.setEncounteredExceptionToken(IToken encounteredExceptionToken) voidScopedSymbol.setEncounteredExceptionToken(IToken encounteredExceptionToken) voidSymbolTable.setEncounteredExceptionToken(IToken encounteredExceptionToken) voidISymbol.setInitialisedBy(IToken initialisedBy) voidSymbol.setInitialisedBy(IToken initialisedBy) voidExpressionSymbol.setSourceToken(IToken sourceToken) voidITokenReference.setSourceToken(IToken sourceToken) voidSymbol.setSourceToken(IToken sourceToken) -
Uses of IToken in org.ek9lang.compiler.tokenizer
Classes in org.ek9lang.compiler.tokenizer that implement ITokenModifier and TypeClassDescriptionclassModels a token that we need to create as a synthetic token.Methods in org.ek9lang.compiler.tokenizer that return ITokenConstructors in org.ek9lang.compiler.tokenizer with parameters of type ITokenModifierConstructorDescriptionTokenResult(IToken token, List<IToken> tokensInLine, int positionInLine) Create a valid token result with the token its position and the other surrounding tokens.Constructor parameters in org.ek9lang.compiler.tokenizer with type arguments of type ITokenModifierConstructorDescriptionTokenResult(IToken token, List<IToken> tokensInLine, int positionInLine) Create a valid token result with the token its position and the other surrounding tokens.