Commit Graph

5 Commits

Author SHA1 Message Date
Julien Fischer
6f57bd81e7 Fix an issue with moose.
extras/moose/moose.m:
    Emit an import of the string module since the generated code
    contains calls to string.format.

    Omit the import of std_util from the generated code as that is
    no longer required.

extras/moose/samples/cgram.moo:
    We no longer need to import the string module here.

extras/moose/tests/array_based.moo:
    Syntax and formatting cleanup
2022-03-20 20:06:39 +11:00
Julien Fischer
aa5c8f8d65 Fix compilation of extras/moose.
extras/moose/mercury_syntax.m:
    Import the mercury_term_parser modules.

extras/moose/moose.m:
    Replace calls to io.see etc.  (Using explicit stream arguments
    would be better, but is future work.)

extras/moose/tests/array_based.moo:
    Replace a call to a deleted predicate.
2022-03-06 02:40:33 +11:00
Julien Fischer
c954687d2e Update a moose regression test.
extras/moose/tests/array_based.moo:
    Replace `:- external' declarations with `:- pragma external_func'
    declarations.
2016-04-26 13:32:33 +10:00
Julien Fischer
2a8be7bbf6 Replace '__' as module qualifier in rest of the extras.
extras/*/*.m:
	Replace the use of '__' as a module qualifier in the rest of
	the extras.

	s/io\.state/io/ in the extras.

	Use '=' instead of is/2 in a spot.
2014-12-29 16:48:17 +11:00
Fergus Henderson
f3f02edec1 Fix a bug introduced by petr's last change: put back the
Estimated hours taken: 1
Branches: main

extras/moose/moose.m:
	Fix a bug introduced by petr's last change: put back the
	`:- import_module list.' declaration, since it is needed for
	the references to `[]', `[|]', `list', and `list_skel'.
	But put it back in the implementation section rather than in
	the interface section, because it is not needed by the interface.

extras/moose/tests/Mmakefile:
extras/moose/tests/array_based.moo:
	Add a regression test.
2004-02-24 00:40:00 +00:00