WikiMacros - MLton Standard ML Compiler (SML Compiler)

MLton MLTONWIKIVERSION | WikiMacros |
Home Index

Here are the wiki macros available in addition to the usual MoinMoin ones.

- `[[Cite(anchor[,text])]]` displays text as a link to the corresponding reference on the References page.
  Examples: a paper

- `[[DownloadSVN(pathToFile)]]` displays a download link to the ViewSVN page for `pathToFile`.
  Examples: Makefile, main.sml

- `[[IncludeSVN(pathToFile[,type][,[start]:[end]...])]]` textually includes the latest contents of `pathToFile`. The contents are formatted with Enscript using highlighting mode `type`, as in the `!#syntax` processor; if `type` is omitted, the macro uses the extension of `pathToFile`. A sequence of ranges may be used to specify the lines to be formatted; in each range, the absence of `start` implicitly denotes the start of the file and the absence of `end` implicitly denotes the end of the file; furthermore, negative `start` and `end` may be used to index relative to the end of the file.
  Example:

      (* Copyright (C) 2009 Matthew Fluet.
       * Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh
       *    Jagannathan, and Stephen Weeks.
       * Copyright (C) 1997-2000 NEC Research Institute.
       *
       * MLton is released under a BSD-style license.
       * See the file MLton-LICENSE for details.
       *)

      structure Main = Main ()

- `[[ViewSVN(pathToFile)]]` displays a link to the ViewSVN page for `pathToFile`.
  Examples: Makefile, main.sml

- `[[ViewSVNDir(pathToDir)]]` displays a link to the ViewSVN page for `pathToDir`.
  Example: main

- `[[ViewSVNRev(rev)]]` displays a link to the ViewSVN page for revision `rev`.
  Example: 4242

Last edited on 2007-07-30 18:04:50 by MatthewFluet.