Documentation
¶
Index ¶
- func ArrayItem(s string) string
- func ArrayType(s string) string
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func IsArray(s string) bool
- func NewLabelTranslator() *labelTranslator
- func NewParser(v, f NameTranslation) *parser
- type FileFunc
- type Func
- type FunctionCaller
- type NameTranslation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayType ¶
ArrayType formats array type name for given type. The convention is simple, it is package name "array" and exported s.
func NewLabelTranslator ¶
func NewLabelTranslator() *labelTranslator
func NewParser ¶
func NewParser(v, f NameTranslation) *parser
Types ¶
type FileFunc ¶
type FileFunc struct { *Func // contains filtered or unexported fields }
func (*FileFunc) Add ¶
Adds a function to the universe so it is recognized when calling the function using Func.Namespace(string).Call(string, []lang.Expression) First argument is a real name of the function. It goes well with the missingArgs argument, goal is to found the correct function. Functions in PHP can have variable amount of arguments.
func (*FileFunc) Namespace ¶
func (f *FileFunc) Namespace(n string) *FunctionCaller
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
func NewFunc ¶
func NewFunc(gc *lang.GlobalContext) *Func
type FunctionCaller ¶
type FunctionCaller struct { Func *map[string][]*lang.Function // contains filtered or unexported fields }
func (*FunctionCaller) Call ¶
func (fc *FunctionCaller) Call(name string, args []lang.Expression) (*lang.FunctionCall, error)
func (*FunctionCaller) NeedsGlobal ¶
func (fc *FunctionCaller) NeedsGlobal(name string)
type NameTranslation ¶
func NewFunctionTranslator ¶
func NewFunctionTranslator() NameTranslation
func NewNameTranslator ¶
func NewNameTranslator() NameTranslation
Click to show internal directories.
Click to hide internal directories.