class Cucumber::Core::Gherkin::AstBuilder

Gherkin parser.
 Builds an AST of a feature by listening to events from the

def background(node)

def background(node)
  builder = BackgroundBuilder.new(file, node)
  @feature_builder.background_builder = builder
  @current = builder
end

def eof

def eof
end

def examples(node)

def examples(node)
  @current.add_examples file, node
end

def feature(node)

def feature(node)
  @feature_builder = FeatureBuilder.new(file, node)
end

def file

def file
  @path
end

def initialize(path)

def initialize(path)
  @path = path
  @feature_builder = nil
end

def language

def language
  @language || raise("Language has not been set")
end

def language=(language)

def language=(language)
  @language = language
end

def result

def result
  return Ast::NullFeature.new unless @feature_builder
  @feature_builder.result(language)
end

def scenario(node)

def scenario(node)
  builder = ScenarioBuilder.new(file, node)
  @feature_builder.add_child builder
  @current = builder
end

def scenario_outline(node)

def scenario_outline(node)
  builder = ScenarioOutlineBuilder.new(file, node)
  @feature_builder.add_child builder
  @current = builder
end

def step(node)

def step(node)
  @current.add_step file, node
end

def syntax_error(state, event, legal_events, line)

def syntax_error(state, event, legal_events, line)
  # raise "SYNTAX ERROR"
end

def uri(uri)

def uri(uri)
  @path = uri
end