Files
mercury/tests/debugger/print_goal.exp2
Ralph Becket a8ffd3680c Change the compiler and tools so that .' and not :' is now used as the
Estimated hours taken: 14
Branches: main

Change the compiler and tools so that `.' and not `:' is now used as the
module separator in all output.

Infix `.' now has associativity yfx and priority 10.

NEWS:
	Report the change.

configure.in:
	Amend the test for an up-to-date Mercury compiler to check whether
	it recognises `.' as a module qualifier.

compiler/code_gen.m:
compiler/error_util.m:
compiler/hlds_out.m:
compiler/prog_out.m:
compiler/prog_util.m:
compiler/rl_exprn.m:
compiler/rl_gen.m:
compiler/source_file_map.m:
compiler/unused_args.m:
library/io.m:
library/rtti_implementation.m:
library/type_desc.m:
runtime/mercury_debug.c:
runtime/mercury_deconstruct.c:
runtime/mercury_stack_trace.c:
	Change `:' to `.' as module separator for output.

compiler/mercury_to_mercury.m:
compiler/prog_io_typeclass.m:
	As above.
	Fixed a bug where `.' was not being recognised as a module separator.

doc/reference_manual.texi:
	Report the change.

library/term_io.m:
	Ensure that infix `.' is written without surrounding spaces.

tests/hard_coded/dot_separator.m:
tests/hard_coded/dot_separator.exp:
tests/hard_coded/Mmakefile:
	Test case added.
2003-01-17 05:57:20 +00:00

67 lines
1.7 KiB
Plaintext

1: 1 1 CALL pred print_goal.main/2-0 (det) print_goal.m:12
mdb> echo on
Command echo enabled.
mdb> context none
Contexts will not be printed.
mdb> register --quiet
mdb> b big_data
0: + stop interface pred print_goal.big_data/1-0 (det)
mdb> b print_goal
1: + stop interface pred print_goal.print_goal/9-0 (det)
mdb> c
2: 2 2 CALL pred print_goal.big_data/1-0 (det)
mdb> p goal
big_data('_')
mdb> finish
3: 2 2 EXIT pred print_goal.big_data/1-0 (det)
mdb> p goal
big_data(big(big(big/3, 2, small), 3, big(big/3, 6, small)))
mdb> c
big(big(big(small, 1, small), 2, small), 3, big(big(small, 4, big(small, 5, small)), 6, small)).
8: 5 2 CALL pred print_goal.print_goal/9-0 (det)
mdb> v
1 HeadVar__1
2 _W (arg 2)
3 X (arg 3)
4 Y (arg 6)
5 DCG_0 (arg 8)
mdb> p goal
print_goal(yes, 100, 101, _, _, 102, _, state(<<c_pointer>>), _)
mdb> finish
10: 5 2 EXIT pred print_goal.print_goal/9-0 (det)
mdb> v
1 HeadVar__1
2 _W (arg 2)
3 X (arg 3)
4 HeadVar__4
5 HeadVar__5
6 Y (arg 6)
7 HeadVar__7
8 DCG_1 (arg 9)
mdb> p goal
print_goal(yes, 100, 101, 102, 103, 102, 103, _, state(<<c_pointer>>))
mdb> c
103.
103.
19: 10 2 CALL pred print_goal.print_goal/9-0 (det)
mdb> v
1 HeadVar__1
2 _W (arg 2)
3 X (arg 3)
4 Y (arg 6)
5 DCG_0 (arg 8)
mdb> finish
21: 10 2 EXIT pred print_goal.print_goal/9-0 (det)
mdb> v
1 HeadVar__1
2 _W (arg 2)
3 X (arg 3)
4 HeadVar__4
5 HeadVar__5
6 Y (arg 6)
7 HeadVar__7
8 DCG_1 (arg 9)
mdb> c
104.
104.