tokens

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const COMMA = rune(',')
View Source
const COMMENT = rune('#')
View Source
const DOUBLE_QUOTE = rune('"')
View Source
const EOF rune = 0
View Source
const ESCAPE = rune('\\')
View Source
const KEYWORD_BRANCH = "BRANCH:"
View Source
const KEYWORD_COMMA = ","
View Source
const KEYWORD_DO = "DO"
View Source
const KEYWORD_DOUBLE_QUOTE = "\""
View Source
const KEYWORD_END = "END"
View Source
const KEYWORD_PROJECT = "PROJECT"

keywords

View Source
const KEYWORD_REPO = "REPO"
View Source
const KEYWORD_SINGLE_QUOTE = "'"
View Source
const NEWLINE = rune('\n')
View Source
const SINGLE_QUOTE = rune('\'')
View Source
const SPACE = rune(' ')
View Source
const TAB = rune('\t')

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Kind  TokenType
	Value string
}

func (Token) String

func (t Token) String() string

type TokenType

type TokenType int
const (
	TOKEN_ERROR TokenType = iota
	TOKEN_EOF

	TOKEN_SINGLE_QUOTE
	TOKEN_DOUBLE_QUOTE
	TOKEN_COMMA

	TOKEN_PROJECT
	TOKEN_PROJECT_VALUE
	TOKEN_REPO
	TOKEN_REPO_VALUE
	TOKEN_BRANCH
	TOKEN_BRANCH_VALUE

	TOKEN_DO
	TOKEN_END
)

Jump to

Keyboard shortcuts

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