Versions in this module Expand all Collapse all v0 v0.7.2 May 5, 2017 Changes in this version + const COMMENT_PREFIX + const DEFAULT_DIALECT + const DOCSTRING_ALTERNATIVE_SEPARATOR + const DOCSTRING_SEPARATOR + const ESCAPED_NEWLINE + const ESCAPE_CHAR + const TABLE_CELL_SEPARATOR + const TAG_PREFIX + const TITLE_KEYWORD_SEPARATOR + type AstBuilder interface + GetFeature func() *Feature + func NewAstBuilder() AstBuilder + type Background struct + type Builder interface + Build func(*Token) (bool, error) + EndRule func(RuleType) (bool, error) + Reset func() + StartRule func(RuleType) (bool, error) + type Comment struct + Location *Location + Text string + type DataTable struct + Rows []*TableRow + type DocString struct + Content string + ContentType string + Delimitter string + type Examples struct + Description string + Keyword string + Name string + TableBody []*TableRow + TableHeader *TableRow + Tags []*Tag + type Feature struct + Background *Background + Comments []*Comment + Description string + Keyword string + Language string + Name string + ScenarioDefinitions []interface{} + Tags []*Tag + func ParseFeature(in io.Reader) (feature *Feature, err error) + type GherkinDialect struct + Keywords map[string][]string + Language string + Name string + Native string + func (g *GherkinDialect) BackgroundKeywords() []string + func (g *GherkinDialect) ExamplesKeywords() []string + func (g *GherkinDialect) FeatureKeywords() []string + func (g *GherkinDialect) ScenarioKeywords() []string + func (g *GherkinDialect) ScenarioOutlineKeywords() []string + func (g *GherkinDialect) StepKeywords() []string + type GherkinDialectProvider interface + GetDialect func(language string) *GherkinDialect + func GherkinDialectsBuildin() GherkinDialectProvider + type Line struct + AtEof bool + LineNumber int + LineText string + TrimmedLineText string + func (g *Line) Indent() int + func (g *Line) IsEmpty() bool + func (g *Line) IsEof() bool + func (g *Line) StartsWith(prefix string) bool + type LineSpan struct + Column int + Text string + func (l *LineSpan) String() string + type Location struct + Column int + Line int + type Matcher interface + MatchBackgroundLine func(line *Line) (bool, *Token, error) + MatchComment func(line *Line) (bool, *Token, error) + MatchDocStringSeparator func(line *Line) (bool, *Token, error) + MatchEOF func(line *Line) (bool, *Token, error) + MatchEmpty func(line *Line) (bool, *Token, error) + MatchExamplesLine func(line *Line) (bool, *Token, error) + MatchFeatureLine func(line *Line) (bool, *Token, error) + MatchLanguage func(line *Line) (bool, *Token, error) + MatchOther func(line *Line) (bool, *Token, error) + MatchScenarioLine func(line *Line) (bool, *Token, error) + MatchScenarioOutlineLine func(line *Line) (bool, *Token, error) + MatchStepLine func(line *Line) (bool, *Token, error) + MatchTableRow func(line *Line) (bool, *Token, error) + MatchTagLine func(line *Line) (bool, *Token, error) + Reset func() + func NewLanguageMatcher(gdp GherkinDialectProvider, language string) Matcher + func NewMatcher(gdp GherkinDialectProvider) Matcher + type Node struct + Location *Location + Type string + type Parser interface + Parse func(s Scanner, m Matcher) (err error) + StopAtFirstError func(b bool) + func NewParser(b Builder) Parser + type RuleType int + const RuleType_Background + const RuleType_Background_Description + const RuleType_DataTable + const RuleType_Description + const RuleType_Description_Helper + const RuleType_DocString + const RuleType_Examples + const RuleType_Examples_Definition + const RuleType_Examples_Description + const RuleType_Feature + const RuleType_Feature_Description + const RuleType_Feature_Header + const RuleType_None + const RuleType_Scenario + const RuleType_ScenarioOutline + const RuleType_ScenarioOutline_Description + const RuleType_ScenarioOutline_Step + const RuleType_Scenario_Definition + const RuleType_Scenario_Description + const RuleType_Scenario_Step + const RuleType_Step + const RuleType_Step_Arg + const RuleType_Tags + const RuleType__BackgroundLine + const RuleType__Comment + const RuleType__DocStringSeparator + const RuleType__EOF + const RuleType__Empty + const RuleType__ExamplesLine + const RuleType__FeatureLine + const RuleType__Language + const RuleType__Other + const RuleType__ScenarioLine + const RuleType__ScenarioOutlineLine + const RuleType__StepLine + const RuleType__TableRow + const RuleType__TagLine + func (t RuleType) IsEOF() bool + func (t RuleType) Name() string + type Scanner interface + Scan func() (line *Line, atEof bool, err error) + func NewScanner(r io.Reader) Scanner + type Scenario struct + Tags []*Tag + type ScenarioDefinition struct + Description string + Keyword string + Name string + Steps []*Step + type ScenarioOutline struct + Examples []*Examples + Tags []*Tag + type Step struct + Argument interface{} + Keyword string + Text string + type TableCell struct + Value string + type TableRow struct + Cells []*TableCell + type Tag struct + Location *Location + Name string + type Token struct + GherkinDialect string + Indent string + Items []*LineSpan + Keyword string + Location *Location + Text string + Type TokenType + func (t *Token) IsEOF() bool + func (t *Token) String() string + type TokenType int + const TokenType_BackgroundLine + const TokenType_Comment + const TokenType_DocStringSeparator + const TokenType_EOF + const TokenType_Empty + const TokenType_ExamplesLine + const TokenType_FeatureLine + const TokenType_Language + const TokenType_None + const TokenType_Other + const TokenType_ScenarioLine + const TokenType_ScenarioOutlineLine + const TokenType_StepLine + const TokenType_TableRow + const TokenType_TagLine + func (t TokenType) Name() string + func (t TokenType) RuleType() RuleType