Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3078

Re: Making a simple parser

From jake kaiden <jakekaiden@yahoo.com>
Newsgroups comp.lang.ruby
Subject Re: Making a simple parser
Date 2011-04-17 21:10 -0500
Organization Service de news de lacave.net
Message-ID <3a34d3f4864cb1f1a57e228f477a242a@ruby-forum.com> (permalink)
References <87adbac7061a00a72e282c160ed42414@ruby-forum.com> <04ac3faa3cf24428d075625283df7645@ruby-forum.com> <166260ce43f6052c38acb58ad1887d60@ruby-forum.com>

Show all headers | View raw


Felipe Balbi wrote in post #993383:
> Hi Jake,
> I want to add another input format
> all I would have to do would be to create a new class and the code
> would just work.
>
> With this approach, I would have keep on adding more and more
> methods for doing the actual parsing of different formats and what
> I wanted was to offload that to another class without touching the
> caller code.

  a very good point - and really what inheritance is for.  good luck 
with a solution, i (and i imagine those who read this post) will keep 
playing with the idea...

  hasta otro...

  -j

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Making a simple parser Felipe Balbi <balbif@gmail.com> - 2011-04-16 14:52 -0500
  Re: Making a simple parser 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-16 22:31 -0500
  Re: Making a simple parser jake kaiden <jakekaiden@yahoo.com> - 2011-04-17 12:01 -0500
    Re: Making a simple parser Felipe Balbi <balbif@gmail.com> - 2011-04-17 15:22 -0500
      Re: Making a simple parser jake kaiden <jakekaiden@yahoo.com> - 2011-04-17 21:10 -0500
  Re: Making a simple parser Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-04-18 02:22 -0500
    Re: Making a simple parser Felipe Balbi <balbif@gmail.com> - 2011-04-19 16:03 -0500
  Re: Making a simple parser 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-18 13:24 -0500
    Re: Making a simple parser 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-18 15:22 -0500

csiph-web