Documentation
¶
Index ¶
- type AddExpr
- type Assign
- type Block
- type CallExpr
- type DivExpr
- type EqualExpr
- type Expr
- type ExprStmt
- type FunctionDecl
- type GreaterEqualExpr
- type GreaterExpr
- type IdentExpr
- type IfStmt
- type IntConstExpr
- type LessEqualExpr
- type LessExpr
- type ModExpr
- type MulExpr
- type NotEqualExpr
- type NotExpr
- type ReturnStmt
- type SourceFile
- type Stmt
- type SubExpr
- type TopLevelDecl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionDecl ¶
func (*FunctionDecl) GenTopLevelDecl ¶
func (f *FunctionDecl) GenTopLevelDecl()
type GreaterEqualExpr ¶
type GreaterEqualExpr struct {
Lhs, Rhs Expr
}
func (*GreaterEqualExpr) GenExpr ¶
func (e *GreaterEqualExpr) GenExpr()
type GreaterExpr ¶
type GreaterExpr struct {
Lhs, Rhs Expr
}
func (*GreaterExpr) GenExpr ¶
func (e *GreaterExpr) GenExpr()
type IntConstExpr ¶
type IntConstExpr struct {
IntValue int
}
func (*IntConstExpr) GenExpr ¶
func (e *IntConstExpr) GenExpr()
type LessEqualExpr ¶
type LessEqualExpr struct {
Lhs, Rhs Expr
}
func (*LessEqualExpr) GenExpr ¶
func (e *LessEqualExpr) GenExpr()
type NotEqualExpr ¶
type NotEqualExpr struct {
Lhs, Rhs Expr
}
func (*NotEqualExpr) GenExpr ¶
func (e *NotEqualExpr) GenExpr()
type ReturnStmt ¶
type ReturnStmt struct {
ReturnExpr Expr
}
func (*ReturnStmt) GenStmt ¶
func (s *ReturnStmt) GenStmt()
type SourceFile ¶
type SourceFile struct {
TopLevelDecls []TopLevelDecl
}
func (*SourceFile) GenSourceFile ¶
func (s *SourceFile) GenSourceFile()
type TopLevelDecl ¶
type TopLevelDecl interface {
GenTopLevelDecl()
}
Click to show internal directories.
Click to hide internal directories.