gopher-lua: github.com/yuin/gopher-lua/ast Index | Files

package ast

import "github.com/yuin/gopher-lua/ast"

Index

Package Files

ast.go expr.go misc.go stmt.go token.go

type ArithmeticOpExpr Uses

type ArithmeticOpExpr struct {
    ExprBase

    Operator string
    Lhs      Expr
    Rhs      Expr
}

type AssignStmt Uses

type AssignStmt struct {
    StmtBase

    Lhs []Expr
    Rhs []Expr
}

type AttrGetExpr Uses

type AttrGetExpr struct {
    ExprBase

    Object Expr
    Key    Expr
}

type BreakStmt Uses

type BreakStmt struct {
    StmtBase
}

type Comma3Expr Uses

type Comma3Expr struct {
    ExprBase
}

type ConstExpr Uses

type ConstExpr interface {
    Expr
    // contains filtered or unexported methods
}

type ConstExprBase Uses

type ConstExprBase struct {
    ExprBase
}

type DoBlockStmt Uses

type DoBlockStmt struct {
    StmtBase

    Stmts []Stmt
}

type Expr Uses

type Expr interface {
    PositionHolder
    // contains filtered or unexported methods
}

type ExprBase Uses

type ExprBase struct {
    Node
}

type FalseExpr Uses

type FalseExpr struct {
    ConstExprBase
}

type Field Uses

type Field struct {
    Key   Expr
    Value Expr
}

type FuncCallExpr Uses

type FuncCallExpr struct {
    ExprBase

    Func      Expr
    Receiver  Expr
    Method    string
    Args      []Expr
    AdjustRet bool
}

type FuncCallStmt Uses

type FuncCallStmt struct {
    StmtBase

    Expr Expr
}

type FuncDefStmt Uses

type FuncDefStmt struct {
    StmtBase

    Name *FuncName
    Func *FunctionExpr
}

type FuncName Uses

type FuncName struct {
    Func     Expr
    Receiver Expr
    Method   string
}

type FunctionExpr Uses

type FunctionExpr struct {
    ExprBase

    ParList *ParList
    Stmts   []Stmt
}

type GenericForStmt Uses

type GenericForStmt struct {
    StmtBase

    Names []string
    Exprs []Expr
    Stmts []Stmt
}

type IdentExpr Uses

type IdentExpr struct {
    ExprBase

    Value string
}

type IfStmt Uses

type IfStmt struct {
    StmtBase

    Condition Expr
    Then      []Stmt
    Else      []Stmt
}

type LocalAssignStmt Uses

type LocalAssignStmt struct {
    StmtBase

    Names []string
    Exprs []Expr
}

type LogicalOpExpr Uses

type LogicalOpExpr struct {
    ExprBase

    Operator string
    Lhs      Expr
    Rhs      Expr
}

type NilExpr Uses

type NilExpr struct {
    ConstExprBase
}

type Node Uses

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

func (*Node) LastLine Uses

func (self *Node) LastLine() int

func (*Node) Line Uses

func (self *Node) Line() int

func (*Node) SetLastLine Uses

func (self *Node) SetLastLine(line int)

func (*Node) SetLine Uses

func (self *Node) SetLine(line int)

type NumberExpr Uses

type NumberExpr struct {
    ConstExprBase

    Value string
}

type NumberForStmt Uses

type NumberForStmt struct {
    StmtBase

    Name  string
    Init  Expr
    Limit Expr
    Step  Expr
    Stmts []Stmt
}

type ParList Uses

type ParList struct {
    HasVargs bool
    Names    []string
}

type Position Uses

type Position struct {
    Source string
    Line   int
    Column int
}

type PositionHolder Uses

type PositionHolder interface {
    Line() int
    SetLine(int)
    LastLine() int
    SetLastLine(int)
}

type RelationalOpExpr Uses

type RelationalOpExpr struct {
    ExprBase

    Operator string
    Lhs      Expr
    Rhs      Expr
}

type RepeatStmt Uses

type RepeatStmt struct {
    StmtBase

    Condition Expr
    Stmts     []Stmt
}

type ReturnStmt Uses

type ReturnStmt struct {
    StmtBase

    Exprs []Expr
}

type Stmt Uses

type Stmt interface {
    PositionHolder
    // contains filtered or unexported methods
}

type StmtBase Uses

type StmtBase struct {
    Node
}

type StringConcatOpExpr Uses

type StringConcatOpExpr struct {
    ExprBase

    Lhs Expr
    Rhs Expr
}

type StringExpr Uses

type StringExpr struct {
    ConstExprBase

    Value string
}

type TableExpr Uses

type TableExpr struct {
    ExprBase

    Fields []*Field
}

type Token Uses

type Token struct {
    Type int
    Name string
    Str  string
    Pos  Position
}

func (*Token) String Uses

func (self *Token) String() string

type TrueExpr Uses

type TrueExpr struct {
    ConstExprBase
}

type UnaryLenOpExpr Uses

type UnaryLenOpExpr struct {
    ExprBase
    Expr Expr
}

type UnaryMinusOpExpr Uses

type UnaryMinusOpExpr struct {
    ExprBase
    Expr Expr
}

type UnaryNotOpExpr Uses

type UnaryNotOpExpr struct {
    ExprBase
    Expr Expr
}

type WhileStmt Uses

type WhileStmt struct {
    StmtBase

    Condition Expr
    Stmts     []Stmt
}

Package ast imports 1 packages (graph) and is imported by 29 packages. Updated 2016-07-27. Refresh now. Tools for package owners.