Where to start in parsing?

H

Hakusa

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?
 
M

Marcel Molina Jr.

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.rubyforge.org/

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

marcel
 
B

benjohn

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://rubygems.org/

Cheers,
Benj
 
H

Hakusa

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://rubygems.org/

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.
 
U

Ujjwal Trivedi

Hi ..these links will definitely prove useful...=20
Installing on Windows
http://wiki.rubyonrails.org/rails/pages/GemRails=20

http://wiki.rubyonrails.org/rails/pages/RailsOnWindows=20

Regards,=20
Ujjwal=20


-----Original Message-----
From: (e-mail address removed) [mailto:[email protected]]=20
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://rubygems.org/

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.




*************************************************************************=
**************************************************=0AThis e-mail communic=
ation and any attachments may be privileged and confidential to Hexaware =
and are intended only for the =0Ause of the recipients named above. If yo=
u are not the intended recipient, please do not review, disclose, dissemi=
nate, =0Adistribute or copy this e-mail and attachments. If you have rece=
ived this email in error, please delete the same alongwith =0Aall attachm=
ents thereto and notify us immediately at (e-mail address removed) .=0A****=
*************************************************************************=
**********************************************=0A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top