Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2002, 06:01 PM   PM User | #1
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
writing own parser

i was wandering if someone could tell me wher i could learn how to make my own parser for the web (like PHP or perl). i dont really have any particular reason for doing this i was just interested. any ideas?
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 10-02-2002, 07:59 PM   PM User | #2
Bosko
Regular Coder

 
Join Date: Jun 2002
Location: The Netherlands
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Bosko is an unknown quantity at this point
You can start by making simple little scripting languages,search for Yacc with google for more info.Or you could make a mathematical expression parser.
Bosko is offline   Reply With Quote
Old 10-02-2002, 08:08 PM   PM User | #3
fivesidecube
New Coder

 
Join Date: Sep 2002
Location: Up North (UK)
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
fivesidecube is an unknown quantity at this point
whackaxe,

There is also bison, GNU's version of yacc.

Fivesidecube.
fivesidecube is offline   Reply With Quote
Old 10-05-2002, 08:13 AM   PM User | #4
Shawn Curry
New Coder

 
Join Date: Oct 2002
Location: middle of nowhere
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Shawn Curry is an unknown quantity at this point
Just an idea (if you were planning on writing it yourself) you could model it after windows(i.e. message handling). You use the parser function to parse, then it has a set of events you want to handle. When the parser identifies an event (maybe a closed parenthesis after an open one), it fires the event, which may/may not change the position of the pointer you're parsing with, or it might call a new one. Like I said, just an idea.
Shawn Curry is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:27 AM.


Advertisement
Log in to turn off these ads.