lexertoken

package
v0.0.0-...-2934bfa Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const EOF rune = 0
View Source
const EQUAL_SIGN string = "="
View Source
const LEFT_BRACKET string = "["
View Source
const NEWLINE string = "\n"
View Source
const RIGHT_BRACKET string = "]"

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Type  TokenType
	Value string
}

func (Token) String

func (this Token) String() string

type TokenType

type TokenType int
const (
	TOKEN_ERROR TokenType = iota
	TOKEN_EOF

	TOKEN_LEFT_BRACKET
	TOKEN_RIGHT_BRACKET
	TOKEN_EQUAL_SIGN
	TOKEN_NEWLINE

	TOKEN_SECTION
	TOKEN_KEY
	TOKEN_VALUE
)

Jump to

Keyboard shortcuts

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