Documentation
¶
Overview ¶
nexssp/flow/compiler/ast.go
nexssp/flow/compiler/token.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomExpr ¶
type AtomExpr struct {
Name string // e.g. "github.issue"
Profile string // from :arch
Prompt string // from @security
Targets []string // from #pkg
Excludes []string // from ~testdata
Params map[string]string // from (code=pack.content)
Inputs map[string]string // from (code=pack.content) – same as params but semantic
Modifiers []string // from :retry=3 :idempotent
}
type ConditionalExpr ¶
type Expr ¶
type Expr interface {
Node
// contains filtered or unexported methods
}
Expr is the root of all expression nodes.
type FallbackExpr ¶
type ParallelExpr ¶
type ParallelExpr struct {
Children []Expr
}
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseExpression ¶
type PipelineExpr ¶
type ProjectionExpr ¶
type ProjectionExpr struct {
Raw string // e.g. `prompt: "hello" + name`
}
ProjectionExpr holds the raw content inside { ... }. We keep it as a raw string – expr-lang will parse it later.
type TokenType ¶
type TokenType int
const ( TokenEOF TokenType = iota TokenIdent TokenString TokenNumber TokenArrow // -> TokenPipe // | TokenOr // || TokenAmpersand // & TokenLParen TokenRParen TokenLBrace TokenRBrace TokenQuestion // ? TokenColon // : TokenAssign // = TokenAt // @ TokenHash // # TokenTilde // ~ TokenComma TokenInvalid )
Click to show internal directories.
Click to hide internal directories.