token

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pos

type Pos struct {
	Filename string
	Line     int
	Col      int
}

func (*Pos) String

func (p *Pos) String() string

type Token

type Token struct {
	Pos   Pos
	Type  Type
	Str   string
	Int   int64
	Float float64
	Bool  bool
}

type Type

type Type int
const (
	Nil Type = iota
	Int
	Float
	String
	Bool
	Keyword
	ID
)

Jump to

Keyboard shortcuts

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