|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
% Program znajdujący arność wszystkich nieterminali GFJP.
%
% Author: Marcin Woliński
% This file is in the public domain.
:-dynamic nt_arity/2.
term_expansion( (H-->_), Res ) :-
functor(H, NT, A),
(nt_arity(NT,A) -> Res = (:-true)
; Res = nt_arity(NT,A) ).
%:-['gfjp-tmp.dcg'].
:-['gfjp2.dcg'].
:-listing(nt_arity).
:-halt.
%%% Local Variables:
%%% coding: utf-8
%%% mode: prolog
%%% End:
|