go-vimlparser: github.com/haya14busa/go-vimlparser Index | Files | Directories

package vimlparser

import "github.com/haya14busa/go-vimlparser"

Index

Package Files

vimlparser.go

func ParseExpr Uses

func ParseExpr(r io.Reader) (node ast.Expr, err error)

ParseExpr parses Vim script expression.

func ParseFile Uses

func ParseFile(r io.Reader, filename string, opt *ParseOption) (node *ast.File, err error)

ParseFile parses Vim script. filename can be empty.

type ErrVimlParser Uses

type ErrVimlParser struct {
    Filename string
    Offset   int
    Line     int
    Column   int
    Msg      string
}

ErrVimlParser represents VimLParser error.

func (*ErrVimlParser) Error Uses

func (e *ErrVimlParser) Error() string

type ParseOption Uses

type ParseOption struct {
    Neovim bool
}

ParseOption is option for Parse().

Directories

PathSynopsis
astPackage ast provides Vim script AST.
compilerPackage compiler provides compiler from Vim script AST into S-expression like format which is the same format as Compiler of vim-vimlparser.
go
tokenPackage token defines constants representing the lexical tokens of Vim script.

Package vimlparser imports 5 packages (graph) and is imported by 1 packages. Updated 2017-03-26. Refresh now. Tools for package owners.