Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Lexical analysis > Comments

Comments

Comments are ignored; they are not tokens. There are four kind of comments.

Single line comment, starting with hash characeter (#) and ending with line feed, or end of file.

  #
  # $Id: index.nvl,v 1.38 2002/01/31 14:35:18 jkl Exp $
  #

Single line comment, starting with two slashes (//) and ending with line feed, or end of file.

  // FIXME: Quick hack

Comment, starting with /* and ending with */. These comments may span several lines.

  /* 
   * Comment example
   */

Document comment, starting with /** and ending with */. See anvildoc for details.

  /** 
   * Sets the name of blarg.
   * @param name New name 
   */
   function setName(name) {
     ...
   }

See also  | Lexical analysis
Contributes notes:
Add a note
What's new | Anvil