Skip to content

Try extending parser definition API using "classless" notation #2

@rstammer

Description

@rstammer

Idea: Is it feasible to extend the current parser definition API by this: (?)

class PirateshipParser
  include Saxophone
  
  element :flag_color
  elements :cannon, class: CannonParser
  element :captain do 
    element :name 
    elements :children do
     element :age
   end
  end
end

It was just a quick idea today and I haven't done some previous research if it fits to the overall design, but I'd like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions