17 lines
256 B
Go
17 lines
256 B
Go
package ast
|
|
|
|
import (
|
|
"git.akyoto.dev/cli/q/src/expression"
|
|
)
|
|
|
|
// Switch represents a switch statement.
|
|
type Switch struct {
|
|
Cases []Case
|
|
}
|
|
|
|
// Case represents a case inside a switch.
|
|
type Case struct {
|
|
Condition *expression.Expression
|
|
Body AST
|
|
}
|