cmdlang

package module
v0.0.0-...-055acdf Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2015 License: Zlib Imports: 5 Imported by: 0

README

Parse lang I'm playing with

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONTINUE = rune(',')
View Source
var EOF = rune(0)
View Source
var EOF_ARY = []byte{0}

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(r io.Reader) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan() TokInfo

type TokInfo

type TokInfo struct {
	Lstart  int
	Cstart  int
	Pstart  int
	Lend    int
	Cend    int
	Pend    int
	Token   Token
	Literal []byte
}

func (TokInfo) String

func (t TokInfo) String() string

type Token

type Token int
const (
	ILLEGAL Token = iota

	TOK_IDENT

	TOK_WS
	TOK_EOF
	TOK_EOC
	TOK_BLOCK_START
	TOK_BLOCK_END

	TOK_COMMENT_BLOCK
	TOK_COMMENT_EOL
)

func (Token) String

func (t Token) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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