module Canql

grammar Age
  rule with_birth_date
    born_keyword fuzzy_date <Nodes::Age::BirthDateNode>
  end

  rule with_death_date
    that_who_keyword? died_keyword fuzzy_date <Nodes::Age::DeathDateNode>
  end

  rule that_who_keyword
    space ('that' / 'who') word_break
  end

  rule born_keyword
    space ('born' / 'delivered') word_break
  end

  rule died_keyword
    space 'died' word_break
  end
end

end