mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 18:33:58 +00:00
library/mercury_term_lexer.m:
library/mercury_term_parser.m:
As above.
NEWS:
Announce the change.
browser/interactive_query.m:
compiler/analysis.file.m:
compiler/fact_table.m:
compiler/make.module_dep_file.m:
compiler/parse_module.m:
compiler/parse_tree_out_term.m:
compiler/recompilation.used_file.m:
library/MODULES_DOC:
library/char.m:
library/integer.m:
library/io.m:
library/library.m:
library/ops.m:
library/term.m:
library/term_io.m:
mdbcomp/trace_counts.m:
tests/hard_coded/impl_def_lex.m:
tests/hard_coded/impl_def_lex_string.m:
tests/hard_coded/lco_pack_args_3.m:
tests/hard_coded/lexer_bigint.m:
tests/hard_coded/lexer_ints.m:
tests/hard_coded/lexer_zero.m:
tests/hard_coded/parse_number_from_string.m:
tests/valid_seq/nested_module_bug.m:
Conform to the change.
38 lines
829 B
Mathematica
38 lines
829 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% Test case for spurious errors if there are predicates
|
|
% module1.p and module2.module1.p.
|
|
%
|
|
|
|
:- module nested_module_bug.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module list.
|
|
:- import_module nested_module_bug.parser.
|
|
:- import_module mercury_term_parser.
|
|
|
|
main(!IO) :-
|
|
parse_tokens("foo", [1, 2], List),
|
|
io.write_line(List, !IO).
|
|
|
|
:- module nested_module_bug.parser.
|
|
|
|
:- interface.
|
|
|
|
:- pred parse_tokens(string::in, list(int)::in, list(int)::out) is det.
|
|
|
|
:- implementation.
|
|
|
|
parse_tokens(_, X, X).
|
|
|
|
:- end_module nested_module_bug.parser.
|