Module: Gherkin3

Defined in:
lib/gherkin3/token.rb,
lib/gherkin3/errors.rb,
lib/gherkin3/parser.rb,
lib/gherkin3/dialect.rb,
lib/gherkin3/ast_node.rb,
lib/gherkin3/ast_builder.rb,
lib/gherkin3/gherkin_line.rb,
lib/gherkin3/token_matcher.rb,
lib/gherkin3/token_scanner.rb,
lib/gherkin3/token_formatter_builder.rb

Defined Under Namespace

Classes: AstBuilder, AstBuilderException, AstNode, CompositeParserException, Dialect, GherkinLine, NoSuchLanguageException, Parser, ParserContext, ParserError, ParserException, Token, TokenFormatterBuilder, TokenMatcher, TokenScanner, UnexpectedEOFException, UnexpectedTokenException

Constant Summary collapse

RULE_TYPE =
[
  :None,
  :_EOF, # #EOF
  :_Empty, # #Empty
  :_Comment, # #Comment
  :_TagLine, # #TagLine
  :_FeatureLine, # #FeatureLine
  :_BackgroundLine, # #BackgroundLine
  :_ScenarioLine, # #ScenarioLine
  :_ScenarioOutlineLine, # #ScenarioOutlineLine
  :_ExamplesLine, # #ExamplesLine
  :_StepLine, # #StepLine
  :_DocStringSeparator, # #DocStringSeparator
  :_TableRow, # #TableRow
  :_Language, # #Language
  :_Other, # #Other
  :Feature, # Feature! := Feature_Header Background? Scenario_Definition*
  :Feature_Header, # Feature_Header! := #Language? Tags? #FeatureLine Feature_Description
  :Background, # Background! := #BackgroundLine Background_Description Scenario_Step*
  :Scenario_Definition, # Scenario_Definition! := Tags? (Scenario | ScenarioOutline)
  :Scenario, # Scenario! := #ScenarioLine Scenario_Description Scenario_Step*
  :ScenarioOutline, # ScenarioOutline! := #ScenarioOutlineLine ScenarioOutline_Description ScenarioOutline_Step* Examples_Definition+
  :Examples_Definition, # Examples_Definition! [#Empty|#Comment|#TagLine->#ExamplesLine] := Tags? Examples
  :Examples, # Examples! := #ExamplesLine Examples_Description #TableRow #TableRow+
  :Scenario_Step, # Scenario_Step := Step
  :ScenarioOutline_Step, # ScenarioOutline_Step := Step
  :Step, # Step! := #StepLine Step_Arg?
  :Step_Arg, # Step_Arg := (DataTable | DocString)
  :DataTable, # DataTable! := #TableRow+
  :DocString, # DocString! := #DocStringSeparator #Other* #DocStringSeparator
  :Tags, # Tags! := #TagLine+
  :Feature_Description, # Feature_Description := Description_Helper
  :Background_Description, # Background_Description := Description_Helper
  :Scenario_Description, # Scenario_Description := Description_Helper
  :ScenarioOutline_Description, # ScenarioOutline_Description := Description_Helper
  :Examples_Description, # Examples_Description := Description_Helper
  :Description_Helper, # Description_Helper := #Empty* Description? #Comment*
  :Description, # Description! := #Other+
]
DIALECT_FILE_PATH =
File.expand_path("gherkin-languages.json", File.dirname(__FILE__))
DIALECTS =
JSON.parse File.read(DIALECT_FILE_PATH)