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, Filter, Loader, SyntaxError, TableParser

Class Method Summary collapse

Class Method Details

.load_parser(keywords) ⇒ Object



16
17
18
# File 'lib/cucumber/parser.rb', line 16

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