Files
mercury/tests/valid/parsing_bug.m
Fergus Henderson 3918c620e4 Fix a bug: according to the ISO Prolog standard, it should allow
Estimated hours taken: 0.5

library/parser.m:
	Fix a bug: according to the ISO Prolog standard, it should allow
	terms of the form `{}(foo)' or `[](foo)'.

tests/valid/Mmakefile:
tests/valid/parsing_bug.m:
tests/valid/parsing_bug_main.m:
	Regression test.
1998-11-11 00:13:43 +00:00

27 lines
393 B
Mathematica

:- module parsing_bug.
:- interface.
:- import_module list, set.
:- func { list(T) } = set(T).
:- func (set(T) /\ set(T)) = set(T).
:- func (set(T) \/ set(T)) = set(T).
:- func (set(T) - set(T)) = set(T).
:- implementation.
{ List } = Set :- list_to_set(List, Set).
A /\ B = C :- set__intersect(A, B, C).
A \/ B = C :- set__union(A, B, C).
A - B = C :- set__difference(A, B, C).