Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rstammer opened this issue Aug 15, 2019 · 0 comments
Open

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

rstammer opened this issue Aug 15, 2019 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@rstammer
Copy link
Contributor

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.

@rstammer rstammer added enhancement New feature or request question Further information is requested labels Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant