/tutorial/backtracking/tiny_prolog/prolog_compound.e
http://github.com/tybor/Liberty · Specman e · 8 lines · 8 code · 0 blank · 0 comment · 0 complexity · 8a703f54f6fdc439fcfb4ec6887b3e67 MD5 · raw file
- class PROLOG_COMPOUND
- inherit PROLOG_TERM redefine arity end
- feature
- type: INTEGER is type_compound
- arity is do Result := args.count end
- atom: PROLOG_ATOM
- args: FAST_ARRAY[PROLOG_TERM]
- end