Documentation ¶
Index ¶
- Constants
- Variables
- type AddressOf
- type Assign
- type CallFunction
- type Declaration
- type Declare
- type DeclareAndAssign
- type Decrement
- type Dotted
- type Equals
- type Expression
- type Field
- type Fields
- type For
- type Function
- type Functions
- type Functor
- type GreaterThan
- type GreaterThanOrEqual
- type If
- type Import
- type Imports
- type Increment
- type Index
- type LessThan
- type LessThanOrEqual
- type Not
- type NotEqual
- type Package
- type Range
- type Receiver
- type Return
- type Star
- type Statement
- type String
- type Struct
- type Structs
- type Thunk
- type Type
- type Types
- type Var
Constants ¶
View Source
const ( ArchiveTar = "archive/tar" ArchiveZip = "archive/zip" Bufio = "bufio" Builtin = "builtin" Bytes = "bytes" CompressBzip2 = "compress/bzip2" CompressFlate = "compress/flate" CompressGzip = "compress/gzip" CompressLzw = "compress/lzw" CompressZlib = "compress/zlib" ContainerHeap = "container/heap" ContainerList = "container/list" ContainerRing = "container/ring" Crypto = "crypto" CryptoAes = "crypto/aes" CryptoCipher = "crypto/cipher" CryptoDes = "crypto/des" CryptoDsa = "crypto/dsa" CryptoEcdsa = "crypto/ecdsa" CryptoElliptic = "crypto/elliptic" CryptoHmac = "crypto/hmac" CryptoMd5 = "crypto/md5" CryptoRand = "crypto/rand" CryptoRc4 = "crypto/rc4" CryptoRsa = "crypto/rsa" CryptoSha1 = "crypto/sha1" CryptoSha256 = "crypto/sha256" CryptoSha512 = "crypto/sha512" CryptoSubtle = "crypto/subtle" CryptoTls = "crypto/tls" CryptoX509 = "crypto/x509" CryptoX509Pkix = "crypto/x509/pkix" DatabaseSql = "database/sql" DatabaseSqlDriver = "database/sql/driver" DebugDwarf = "debug/dwarf" DebugElf = "debug/elf" DebugGosym = "debug/gosym" DebugMacho = "debug/macho" DebugPe = "debug/pe" DebugPlan9obj = "debug/plan9obj" Encoding = "encoding" EncodingAscii85 = "encoding/ascii85" EncodingAsn1 = "encoding/asn1" EncodingBase32 = "encoding/base32" EncodingBase64 = "encoding/base64" EncodingBinary = "encoding/binary" EncodingCsv = "encoding/csv" EncodingGob = "encoding/gob" EncodingHex = "encoding/hex" EncodingJson = "encoding/json" EncodingPem = "encoding/pem" EncodingXml = "encoding/xml" Errors = "errors" Expvar = "expvar" Flag = "flag" Fmt = "fmt" GoAst = "go/ast" GoBuild = "go/build" GoDoc = "go/doc" GoFormat = "go/format" GoParser = "go/parser" GoPrinter = "go/printer" GoScanner = "go/scanner" GoToken = "go/token" Hash = "hash" HashAdler32 = "hash/adler32" HashCrc32 = "hash/crc32" HashCrc64 = "hash/crc64" HashFnv = "hash/fnv" Html = "html" HtmlTemplate = "html/template" Image = "image" ImageColor = "image/color" ImageColorPalette = "image/color/palette" ImageDraw = "image/draw" ImageGif = "image/gif" ImageJpeg = "image/jpeg" ImagePng = "image/png" IndexSuffixarray = "index/suffixarray" InternalSyscall = "internal/syscall" Io = "io" IoIoutil = "io/ioutil" Log = "Log" LogSyslog = "log/syslog" Math = "math" MathBig = "math/big" MathCmplx = "math/cmplx" MathRand = "math/rand" Mime = "mime" MimeMultipart = "mime/multipart" Net = "net" NetHttp = "net/http" NetHttpCgi = "net/http/cgi" NetHttpCookiejar = "net/http/cookiejar" NetHttpFcgi = "net/http/fcgi" NetHttpHttptest = "net/http/httptest" NetHttpHttputil = "net/http/httputil" NetHttpInternal = "net/http/internal" NetHttpPprof = "net/http/pprof" NetMail = "net/mail" NetRpc = "net/rpc" NetRpcJsonrpc = "net/rpc/jsonrpc" NetSmtp = "net/smtp" NetTextproto = "net/textproto" NetUrl = "net/url" Os = "os" OsExec = "os/exec" OsSignal = "os/signal" OsUser = "os/user" Path = "path" PathFilepath = "path/filepath" Reflect = "reflect" Regexp = "regexp" RegexpSyntax = "regexp/syntax" Runtime = "runtime" RuntimeCgo = "runtime/cgo" RuntimeDebug = "runtime/debug" RuntimePprof = "runtime/pprof" RuntimeRace = "runtime/race" Sort = "sort" Strconv = "strconv" Strings = "strings" Sync = "sync" SyncAtomic = "sync/atomic" Syscall = "syscall" Testing = "testing" TestingIotest = "testing/iotest" TestingQuick = "testing/quick" TextScanner = "text/scanner" TextTabwriter = "text/tabwriter" TextTemplate = "text/template" TextTemplateParse = "text/template/parse" Time = "time" Unicode = "unicode" UnicodeUtf16 = "unicode/utf16" UnicodeUtf8 = "unicode/utf8" Unsafe = "unsafe" )
View Source
const ( StringT = "string" IntT = "int" )
Variables ¶
View Source
var BuiltinTypes = [...]string{
"int",
"int8",
"int16",
"int32",
"int64",
"uint",
"uint8",
"uint16",
"uint32",
"uint64",
"uintptr",
"float",
"float32",
"float64",
"string",
"bool",
"byte",
"complex128",
"complex64",
"error",
"rune",
}
Functions ¶
This section is empty.
Types ¶
type Assign ¶
type Assign struct { Lhs Expression Rhs Expression }
type CallFunction ¶
type CallFunction struct { Func Expression Params []Expression }
func (CallFunction) Expression ¶
func (me CallFunction) Expression() ast.Expr
func (CallFunction) Statement ¶
func (me CallFunction) Statement() ast.Stmt
type Declaration ¶
type DeclareAndAssign ¶
type DeclareAndAssign struct { Lhs Expression Rhs Expression }
func (DeclareAndAssign) Statement ¶
func (me DeclareAndAssign) Statement() ast.Stmt
type Decrement ¶
type Decrement struct {
Value Expression
}
type Expression ¶
type Function ¶
type Function struct { Receiver Receiver Name string ReturnTypes Types Parameters Types Body []Statement }
func (Function) Call ¶
func (me Function) Call(params ...Expression) CallFunction
func (Function) Declaration ¶
type Functor ¶
type Functor struct {
Func Expression
}
TODO: Bad name, change it
func (Functor) Call ¶
func (me Functor) Call(params ...Expression) CallFunction
type GreaterThan ¶
type GreaterThan struct { Lhs Expression Rhs Expression }
func (GreaterThan) Expression ¶
func (me GreaterThan) Expression() ast.Expr
type GreaterThanOrEqual ¶
type GreaterThanOrEqual struct { Lhs Expression Rhs Expression }
func (GreaterThanOrEqual) Expression ¶
func (me GreaterThanOrEqual) Expression() ast.Expr
type If ¶
type If struct { Init Statement Condition Expression Body []Statement }
type Increment ¶
type Increment struct {
Value Expression
}
type LessThanOrEqual ¶
type LessThanOrEqual struct { Lhs Expression Rhs Expression }
func (LessThanOrEqual) Expression ¶
func (me LessThanOrEqual) Expression() ast.Expr
type Package ¶
type Package struct { Name string Declarations []Declaration }
func (*Package) Declare ¶
func (me *Package) Declare(decl Declaration) *Package
type Range ¶
type Range struct { Key Expression Value Expression RangeValue Expression Body []Statement DoNotDeclare bool }
type Receiver ¶
type Receiver struct { Name string Type Expression }
type Return ¶
type Return struct {
Values []Expression
}
type Struct ¶
type Struct struct { Name string Fields Fields Methods Functions FieldValues map[string]Expression }
func (Struct) Declaration ¶
func (Struct) Expression ¶
func (Struct) WithValues ¶
func (me Struct) WithValues(vals map[string]Expression) Struct
Source Files ¶
Click to show internal directories.
Click to hide internal directories.