Re: Tabling in Yap

View: New views
2 Messages — Rating Filter:   Alert me  

Re: Tabling in Yap

by Troy Taillefer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi all,

I want to use Yap to do DCG parsing with left recursion I have tried
to declare a predicated tabled as follows

:- table header/2.

this gives me a syntac error is the Yap stable exe installer compiled
with --enable-tabling in the configure script or add -
DTABLING to YAP_EXTRAS in the system’s Makefile

Also I am looking for a way in Yap prolog to traverse a directory sturcture and parse all files with a given file extension anyone got any hints. I managed to do this in SWI prolog but SWI doesn't have tabling so it doesn't handling left recursive grammars with DCG, unless you use some tricks like cancellation, or left corner which makes your grammar uglier.

Thanks.

Troy
 


     

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Yap-users mailing list
Yap-users@...
https://lists.sourceforge.net/lists/listinfo/yap-users

Re: Tabling in Yap

by Vitor Santos Costa-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Troy

On Wed, Apr 8, 2009 at 1:03 PM, Troy Taillefer <ironwaist29@...> wrote:

>
> Hi all,
>
> I want to use Yap to do DCG parsing with left recursion I have tried
> to declare a predicated tabled as follows
>
> :- table header/2.
>
> this gives me a syntac error is the Yap stable exe installer compiled
> with --enable-tabling in the configure script or add -
> DTABLING to YAP_EXTRAS in the system’s Makefile
>

You mean 5.1.3 or 5.1.4?

> Also I am looking for a way in Yap prolog to traverse a directory sturcture and parse all files with a given file extension anyone got any hints. I managed to do this in SWI prolog but SWI doesn't have tabling so it doesn't handling left recursive grammars with DCG, unless you use some tricks like cancellation, or left corner which makes your grammar uglier.
>

Good point. What is the name of the SWI predicate that does that?

> Thanks.
>
> Troy
>
Sorry for the delay!

Vitor

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Yap-users mailing list
Yap-users@...
https://lists.sourceforge.net/lists/listinfo/yap-users