Module: Cucumber::Parser

Defined in:
lib/cucumber/parser.rb,
lib/cucumber/parser/table.rb,
lib/cucumber/parser/feature.rb,
lib/cucumber/parser/treetop_ext.rb

Overview

Classes in this module parse feature files and translate the parse tree (concrete syntax tree) into an abstract syntax tree (AST) using <a href=“martinfowler.com/dslwip/EmbeddedTranslation.html”>Embedded translation</a>.

The AST is built by the various #build methods in the parse tree.

The AST classes are defined in the Cucumber::Ast module.

Defined Under Namespace

Modules: Feature, Table, TreetopExt Classes: FeatureParser, Loader, SyntaxError, TableParser

Class Method Summary collapse

Class Method Details

.load_parser(keywords) ⇒ Object



22
23
24
# File 'lib/cucumber/parser.rb', line 22

def self.load_parser(keywords)
  Loader.new(keywords)
end