deployr: github.com/skx/deployr/token Index | Files

package token

import "github.com/skx/deployr/token"

Index

Package Files

token.go

Constants

const (
    EOF     = "EOF"
    IDENT   = "IDENT"
    ILLEGAL = "ILLEGAL"
    STRING  = "STRING"

    // Our keywords.
    COPYFILE     = "CopyFile"
    COPYTEMPLATE = "CopyTemplate"
    DEPLOYTO     = "DeployTo"
    IFCHANGED    = "IfChanged"
    RUN          = "Run"
    SET          = "Set"
    SUDO         = "Sudo"
)

pre-defined TokenTypes

type Token Uses

type Token struct {
    Type    Type
    Literal string
}

Token struct represent the lexer token

type Type Uses

type Type string

Type is a string

func LookupIdentifier Uses

func LookupIdentifier(identifier string) Type

LookupIdentifier used to determinate whether identifier is keyword nor not

Package token is imported by 3 packages. Updated 2019-04-20. Refresh now. Tools for package owners.