Re: DCG question

Fabio Valbuena <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
I am trying to use DCG as generative grammar so that we can generate valid
> source code for testing.
>
> I have made some progress, but have few questions:
>
> 1) is there anything in gnu prolog similar to  SWI 'call_with_depth_limit'?
>
> 2) what is the best way to iterate over a 'list' that is:
>  2.1) predefined max size
>  2.2) random generated
>  2.3) is consumed a limited number of times.
>
> example: imagine a 'pool' of identifiers/literals. we want to pick them in
> random fashion, and yet have an upper bound of 'draws'.
>
> Any input is appreciated.
>
> Thx
>

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.