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
  • DCG question Fabio Valbuena
    • Re: DCG question Fabio Valbuena

Reply via email to