21 lines
368 B
Go
21 lines
368 B
Go
package saccharine
|
|
|
|
type Statement interface {
|
|
statement()
|
|
}
|
|
|
|
/** ------------------------------------------------------------------------- */
|
|
|
|
type LetStatement struct {
|
|
Name string
|
|
Parameters []string
|
|
Body Expression
|
|
}
|
|
|
|
type DeclareStatement struct {
|
|
Value Expression
|
|
}
|
|
|
|
func (LetStatement) statement() {}
|
|
func (DeclareStatement) statement() {}
|