Uses of Record Class
io.github.protasm.jvmud.compiler.token.Token
Packages that use Token
Package
Description
Core parser for LPC, producing AST structures from token streams.
Abstract syntax tree structures representing LPC objects.
Expression-level AST nodes.
Lexical analysis for LPC source text.
Token model classes representing lexical units recognized by the scanner.
-
Uses of Token in io.github.protasm.jvmud.compiler.parser
Methods in io.github.protasm.jvmud.compiler.parser with parameters of type TokenConstructors in io.github.protasm.jvmud.compiler.parser with parameters of type TokenModifierConstructorDescriptionParseException(String message, Token<?> token) ParseException(String message, Token<?> token, Throwable cause) -
Uses of Token in io.github.protasm.jvmud.compiler.parser.ast
Constructors in io.github.protasm.jvmud.compiler.parser.ast with parameters of type Token -
Uses of Token in io.github.protasm.jvmud.compiler.parser.ast.expr
Constructors in io.github.protasm.jvmud.compiler.parser.ast.expr with parameters of type TokenModifierConstructorDescriptionASTExprLiteralFloat(int line, Token<Float> token) ASTExprLiteralInteger(int line, Token<Integer> token) ASTExprLiteralString(int line, Token<String> token) -
Uses of Token in io.github.protasm.jvmud.compiler.scanner
Constructors in io.github.protasm.jvmud.compiler.scanner with parameters of type TokenModifierConstructorDescriptionScanException(String message, Token<?> token) ScanException(String message, Token<?> token, Throwable cause) -
Uses of Token in io.github.protasm.jvmud.compiler.token
Methods in io.github.protasm.jvmud.compiler.token that return TokenModifier and TypeMethodDescriptionToken<?> TokenBuffer.Cursor.advance()Advance by one; stays on EOF once past end.Token<?> TokenBuffer.Cursor.advanceThrough(TokenType type) Consume repeated occurrences of a single type.Token<?> Consume exactly one of the expected types or throw.<T> Token<T> Token<?> TokenBuffer.Cursor.current()<T> Token<T> TokenList.current()Token<?> TokenList.get(int idx) <T> Token<T> Token<?> TokenBuffer.Cursor.peek(int k) Lookahead where peek(0)==current().Token<?> TokenList.peek(int offset) Token<?> TokenBuffer.peekAt(int index) Stateless peek into the sealed buffer.Token<?> TokenBuffer.Cursor.previous()<T> Token<T> TokenList.previous()Methods in io.github.protasm.jvmud.compiler.token with parameters of type TokenModifier and TypeMethodDescriptionvoidstatic TokenBufferBuild from a mutable list (Scanner fills it), then seal.Method parameters in io.github.protasm.jvmud.compiler.token with type arguments of type TokenModifier and TypeMethodDescriptionstatic TokenBufferBuild from a mutable list (Scanner fills it), then seal.