[m-rev.] diff: fix bug #96

Julien Fischer juliensf at csse.unimelb.edu.au
Wed Jan 27 16:54:07 AEDT 2010


Fix bug #96, a documentation problem with the parsing_utils module.

library/parsing_utils.m:
 	Fix a mismatch between the order of the arguments in the
 	documentation of predicate identifier/6 and the actual arguments.

 	Minor formatting changes intended to maintain consistency
 	in the library reference guide.

Julien.

Index: library/parsing_utils.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/library/parsing_utils.m,v
retrieving revision 1.4
diff -u -r1.4 parsing_utils.m
--- library/parsing_utils.m	2 Oct 2009 10:03:12 -0000	1.4
+++ library/parsing_utils.m	27 Jan 2010 05:50:07 -0000
@@ -38,7 +38,6 @@
  %-----------------------------------------------------------------------------%

  :- module parsing_utils.
-
  :- interface.

  :- import_module char.
@@ -49,7 +48,7 @@
  :- import_module string.
  :- import_module unit.

-
+%-----------------------------------------------------------------------------%

      % The parser source (input string).
      %
@@ -135,7 +134,7 @@
  :- pred offset_to_line_number_and_position(line_numbers::in, int::in,
          int::out, int::out) is det.

-    % input_substring(Src, StartOffset, EndOffsetPlusOne, Substring)
+    % input_substring(Src, StartOffset, EndOffsetPlusOne, Substring):
      % Copy the substring from the input occupying the offsets
      % [StartOffset, EndOffsetPlusOne).
      %
@@ -169,7 +168,7 @@
  :- pred ikeyword(string::in, string::in, src::in, unit::out,
          ps::in, ps::out) is semidet.

-    % identifier(Src, InitIdChars, IdChars, Identifier, !PS) matches the next
+    % identifier(InitIdChars, IdChars, Src, Identifier, !PS) matches the next
      % identifer (result in Identifier) comprising a char from InitIdChars
      % followed by zero or more chars from IdChars.  Any subsequent whitespace
      % is consumed.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list