[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Where to start in parsing?

Hakusa@gmail.com

6/29/2007 5:52:00 AM

I haven't programmed in a while, but I want to get back with doing
some parsing for a text adventure I want to make. I know it's not
Ruby's specialty, but it's nice to try and learn how to do something
like this in a language that has good string support.

So I want to start learning to parse, so naturally I go to Goolge. But
of course, I got a lot of XML and stuff like that and that's really
not what I'm looking for (I think). So where do I start? I think I've
heard that regex is the modern parsing algorithm. Or would a different
library be more helpful for me right now?

7 Answers

Marcel Molina Jr.

6/29/2007 6:01:00 AM

0

On Fri, Jun 29, 2007 at 02:55:02PM +0900, Hakusa@gmail.com wrote:
> I haven't programmed in a while, but I want to get back with doing
> some parsing for a text adventure I want to make. I know it's not
> Ruby's specialty, but it's nice to try and learn how to do something
> like this in a language that has good string support.
>
> So I want to start learning to parse, so naturally I go to Goolge. But
> of course, I got a lot of XML and stuff like that and that's really
> not what I'm looking for (I think). So where do I start? I think I've
> heard that regex is the modern parsing algorithm. Or would a different
> library be more helpful for me right now?

Check out Dhaka:
http://dhaka.ruby...

It starts with simple examples and goes all the way up to a non trivial language.

marcel
--
Marcel Molina Jr. <marcel@vernix.org>

Hakusa@gmail.com

6/29/2007 7:09:00 AM

0

On Jun 29, 2:01 am, "Marcel Molina Jr." <mar...@vernix.org> wrote:
> On Fri, Jun 29, 2007 at 02:55:02PM +0900, Hak...@gmail.com wrote:
> > I haven't programmed in a while, but I want to get back with doing
> > some parsing for a text adventure I want to make. I know it's not
> > Ruby's specialty, but it's nice to try and learn how to do something
> > like this in a language that has good string support.
>
> > So I want to start learning to parse, so naturally I go to Goolge. But
> > of course, I got a lot of XML and stuff like that and that's really
> > not what I'm looking for (I think). So where do I start? I think I've
> > heard that regex is the modern parsing algorithm. Or would a different
> > library be more helpful for me right now?
>
> Check out Dhaka:http://dhaka.ruby...
>
> It starts with simple examples and goes all the way up to a non trivial language.
>
> marcel
> --
> Marcel Molina Jr. <mar...@vernix.org>

Thank you.

Hakusa@gmail.com

6/29/2007 7:24:00 AM

0

On Jun 29, 3:08 am, "Hak...@gmail.com" <Hak...@gmail.com> wrote:
> On Jun 29, 2:01 am, "Marcel Molina Jr." <mar...@vernix.org> wrote:
>
>
>
> > On Fri, Jun 29, 2007 at 02:55:02PM +0900, Hak...@gmail.com wrote:
> > > I haven't programmed in a while, but I want to get back with doing
> > > some parsing for a text adventure I want to make. I know it's not
> > > Ruby's specialty, but it's nice to try and learn how to do something
> > > like this in a language that has good string support.
>
> > > So I want to start learning to parse, so naturally I go to Goolge. But
> > > of course, I got a lot of XML and stuff like that and that's really
> > > not what I'm looking for (I think). So where do I start? I think I've
> > > heard that regex is the modern parsing algorithm. Or would a different
> > > library be more helpful for me right now?
>
> > Check out Dhaka:http://dhaka.ruby...
>
> > It starts with simple examples and goes all the way up to a non trivial language.
>
> > marcel
> > --
> > Marcel Molina Jr. <mar...@vernix.org>
>
> Thank you.

Err...how exactly do you install a gem?

Hakusa@gmail.com

6/29/2007 7:25:00 AM

0

On Jun 29, 3:08 am, "Hak...@gmail.com" <Hak...@gmail.com> wrote:
> On Jun 29, 2:01 am, "Marcel Molina Jr." <mar...@vernix.org> wrote:
>
>
>
> > On Fri, Jun 29, 2007 at 02:55:02PM +0900, Hak...@gmail.com wrote:
> > > I haven't programmed in a while, but I want to get back with doing
> > > some parsing for a text adventure I want to make. I know it's not
> > > Ruby's specialty, but it's nice to try and learn how to do something
> > > like this in a language that has good string support.
>
> > > So I want to start learning to parse, so naturally I go to Goolge. But
> > > of course, I got a lot of XML and stuff like that and that's really
> > > not what I'm looking for (I think). So where do I start? I think I've
> > > heard that regex is the modern parsing algorithm. Or would a different
> > > library be more helpful for me right now?
>
> > Check out Dhaka:http://dhaka.ruby...
>
> > It starts with simple examples and goes all the way up to a non trivial language.
>
> > marcel
> > --
> > Marcel Molina Jr. <mar...@vernix.org>
>
> Thank you.

Err...to clarify, WTF is "sudo gem install dhaka" supposed to mean?
(Sorry for the double post...or would this be a triple?)

benjohn

6/29/2007 9:46:00 AM

0

> Err...how exactly do you install a gem?

As I think someone said:

"sudo gem instal <gem-name>"

on a unix or OS X terminal.

[It means, running as root, execute the "gem" program with the command
"instal" for the gem named <gem-name>. This is how to do it on unix of
OS X.]

If you're on Windows, you'll need to use the gem installer that I'm sure
comes with the one click package.

You might want to look here:

http://rub...

Cheers,
Benj


Hakusa@gmail.com

6/29/2007 12:36:00 PM

0

> If you're on Windows, you'll need to use the gem installer that I'm sure
> comes with the one click package.
>
> You might want to look here:
>
> http://rub...
>
> Cheers,
> Benj

Well, I do have Windows and I'm kind of trying to figure this all out,
but it seems almost all of the instructions for using this stuff is
for Lunix and stuff. How do I install a gem on Windows and have Ruby
take care of it all...or just where do I put the installed gem?

Sorry for the trouble. Hoping this is the last off-topic problem.

Ujjwal Trivedi

6/29/2007 12:44:00 PM

0

Hi ..these links will definitely prove useful...
Installing on Windows
http://wiki.rubyonrails.org/rails/page...

http://wiki.rubyonrails.org/rails/pages/Rail...

Regards,
Ujjwal


-----Original Message-----
From: Hakusa@gmail.com [mailto:Hakusa@gmail.com]
Sent: Friday, June 29, 2007 6:10 PM
To: ruby-talk ML
Subject: Re: Installing a gem [was Where to start in parsing?]

> If you're on Windows, you'll need to use the gem installer that I'm
sure
> comes with the one click package.
>
> You might want to look here:
>
> http://rub...
>
> Cheers,
> Benj

Well, I do have Windows and I'm kind of trying to figure this all out,
but it seems almost all of the instructions for using this stuff is
for Lunix and stuff. How do I install a gem on Windows and have Ruby
take care of it all...or just where do I put the installed gem?

Sorry for the trouble. Hoping this is the last off-topic problem.




***************************************************************************************************************************This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith all attachments thereto and notify us immediately at mailadmin@hexaware.com .***************************************************************************************************************************