Dashboard > Mantra > ... > Documentation > Packages
  Mantra Log In | Sign Up   View a printable version of the current page.  
  Packages
Added by Terence Parr, last edited by Terence Parr on Nov 03, 2007
Labels: 
(None)

Mantra has packages just like Java though I use '::' rather than '.'
to separate packages from classes:

package org::antlr::test;

import mantra::io; // same as java's import mantra.io.*;

class int {...}

The mantra::io and mantra::lang packages are imported automatically.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.1 Build:#806 May 06, 2007) - Bug/feature request - Contact Administrators