Documentation ¶
Overview ¶
Package wdlparser implements a parser for Workflow Description Language (WDL) source files. Language specifications can be found at https://github.com/openwdl/wdl
Index ¶
Constants ¶
View Source
const ( Boolean = primitive("Boolean") Int = primitive("Int") Float = primitive("Float") String = primitive("String") File = primitive("File") Any = primitive("Any") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct { After string Inputs []*valueSpec // contains filtered or unexported fields }
A Call represents one parsed call in a workflow.
type Task ¶
type Task struct { Inputs []*valueSpec PrvtDecls []*valueSpec Outputs []*valueSpec Command []string Runtime []*valueSpec Meta []*valueSpec ParameterMeta []*valueSpec // contains filtered or unexported fields }
A Task represents one parsed task.
type Type ¶
type Type interface {
// contains filtered or unexported methods
}
A Type represents a type of WDL. All types implement the Type interface.
type WDL ¶
type WDL struct { Path string Version string Imports []*importSpec Workflow *Workflow Tasks []*Task Structs []*valueSpec // contains filtered or unexported fields }
A WDL represents a parsed WDL document.
func Antlr4Parse ¶
Antlr4Parse parse a WDL document into WDL
type WDLOpSym ¶
type WDLOpSym string
const ( WDLNeg WDLOpSym = "^-" WDLNot WDLOpSym = "!" WDLStr WDLOpSym = "str" WDLMul WDLOpSym = "*" WDLDiv WDLOpSym = "/" WDLMod WDLOpSym = "%" WDLAdd WDLOpSym = "+" WDLSub WDLOpSym = "-" WDLEq WDLOpSym = "==" WDLNeq WDLOpSym = "!=" WDLLt WDLOpSym = "<" WDLLte WDLOpSym = "<=" WDLGt WDLOpSym = ">" WDLGte WDLOpSym = ">=" WDLAnd WDLOpSym = "&&" WDLOr WDLOpSym = "||" WDLTernary WDLOpSym = "?:" )
type Workflow ¶
type Workflow struct { Inputs []*valueSpec PrvtDecls []*valueSpec Outputs []*valueSpec Calls []*Call Meta []*valueSpec ParameterMeta []*valueSpec // contains filtered or unexported fields }
A Workflow represents one parsed workflow.
func NewWorkflow ¶
Click to show internal directories.
Click to hide internal directories.