token

package
v0.0.0-...-b3b5e69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package token contains constants which are used when lexing a program written in the monkey language, as done by the parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Type    tokentype.TokenType
	Literal string

	Line int // token pos line in source code
	Pos  int // token pos of source code
}

Token struct represent the lexer token

func (Token) String

func (tk Token) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL