RSS Element,demiblog Class,Language,Link,Title,Description channel,,en_GB,http://tobyinkster.co.uk/blog/2007/02/10/parsers/,10/02/2007: Re: Parsing Question...,"

cjl wrote:

Short of writing a parser, which is clearly beyond me, what are some reasonable approaches to handling user input that will be executed?

Writing a parser is the best option in the long-run. If you were to attempt to interpret the user input some other way, like pure regular expressions, then you would fall into a lot of traps, and your interpreter would behave oddly in many cases.

A full parser is a much better option: it will behave far more reliably and would be a lot easier to extend, should you feel the need to add extra features to the language at a later date.

Although it’s a lot of work, there are some fairly well established methods on writing them. What you basically need to write is three fairly independent components: a tokeniser, a parser and an interpreter. None of these share any code in common, except for the definitions of a few constants and classes.

Firstly, a tokeniser, which reads the user input and splits it into a long list of tokens. Each token should have the…

" item,,http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/02/10/parsers/comments#comment1,Comment 001,"

fun search test!
http://magicianwizard.info/coach-handbag.html
brahmin handbag
http://magicianwizard.info/designer-inspired-handbags-wholesale.html
discount western handbags
http://magicianwizard.info/wholesale-lizard-skin-handbags.html
horse tapestry handbags
wholesale designer handbags lv
oriano designer handbag
http://magicianwizard.info/fake-copies-designer-handbags.html
http://magicianwizard.info/replica-coach-handbags.html
http://magicianwizard.info/mary-frances-handbags.html
oriano designer handbag
looking for burberry handbag
coach leather handbag
cheap louis vuitton handbag

Author (Unverified): nirvana- [63.251.57.84]
Date: Wednesday, 9th January 2008, 9:19am (UTC)
" item,,http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/02/10/parsers/comments#comment2,Comment 002,"

Hello, nice site look this:
http://activeadultvideo.info/adult-movies/assfuck-anal-slut-teen-young-chick-free-sex-movie.php
http://activeadultvideo.info/adult-movies/nuns-adult-movies.php
free divx full length adult movies
http://activeadultvideo.info/adult-movies/ipod-adult-movies.php
http://activeadultvideo.info/adult-movies/adult-anime-dvd-movies.php
http://activeadultvideo.info/adult-movies/adult-movies-international-shipping.php
http://activeadultvideo.info/adult-movies/free-full-movies-to-watch-adult.php
http://activeadultvideo.info/adult-movies/psp-adult-movies-free.php
vintage white adult movies
http://activeadultvideo.info/adult-movies/adult-movies-with-a-story.php
http://activeadultvideo.info/adult-movies/adult-animated-movies.php
http://activeadultvideo.info/adult-movies/free-adult-gay-movies-online.php
http://activeadultvideo.info/adult-movies/adult-movies-search-engine.php
free bootleg adult movies
best adult masterbation movies

End ^) See you

Author (Unverified): videoweb [210.236.191.79]
Date: Friday, 18th January 2008, 5:58pm (UTC)
" item,,http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/02/10/parsers/comments#comment3,Comment 003,"

Hello, nice site look this:
http://ezynation.info/spring-dresses/facesitting-fiction.php
facesitting de
http://ezynation.info/spring-dresses/facesitting-queens.php
http://ezynation.info/spring-dresses/facesitting-mpgs.php
http://ezynation.info/spring-dresses/bbw-facesitting-tgp.php
http://ezynation.info/spring-dresses/facesitting-felines.php
http://ezynation.info/spring-dresses/bbw-facesitting-free-pics-movies.php
http://ezynation.info/spring-dresses/facesitting-short-skirt.php
http://ezynation.info/spring-dresses/spring-bridesmaid-dresses.php
facesitting rude
facesitting hairy skinny pussy movie galleries
http://ezynation.info/spring-dresses/facesitting-mov-formate.php
facesitting on sofa
facesitting spandex
http://ezynation.info/spring-dresses/spring-dresses.php

End ^) See you

Author (Unverified): storageb [210.236.191.79]
Date: Tuesday, 22nd January 2008, 1:12pm (UTC)
"