Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

need urgent help with parser
im a beginner in PROLOG.i need urgent help with a simple prolog code.i need
to write a predicate parse/2 that would check the validity of an input
string against the given grammar.for eg.

?- parse(s, [a, b]).
Yes

should be the output.could any one let me know how to write the predicate
for this.

Thanks.


Report this thread to moderator Post Follow-up to this message
Old Post
Pro_novice
09-26-04 08:56 AM


Re: need urgent help with parser
In message
< 09e77daf92c4fc32d1d852f4f31c72c1@localho
st.talkaboutprogramming.com>,
Pro_novice <cyb014@rediffmail.com> writes
>im a beginner in PROLOG.i need urgent help with a simple prolog code.i need
>to write a predicate parse/2 that would check the validity of an input
>string against the given grammar.for eg.
>
>?- parse(s, [a, b]).
>Yes
>
>should be the output.could any one let me know how to write the predicate
>for this.

I don't understand this.  For one thing, it sounds far too hard for a
beginner.  For another, you refer to "an input string" and "the given
grammar".  But in your sample call  parse(s, [a, b]),  there is no
string.  And is  [a, b]  in some way a grammar?

Nick
--
Nick Wedd    nick@maproom.co.uk

Report this thread to moderator Post Follow-up to this message
Old Post
Nick Wedd
10-12-04 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Prolog archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:23 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.