Rechercher une page de manuel
HCT::Lang.3pm
Langue: en
Version: 2010-06-27 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
HCT::Lang - Class of lanugages. Loads and provides connection with HCT.DESCRIPTION
This package is responsible for loading HDL into the HCT environment.HCT::Lang will automatically call the method "new" of each language package to get handler.
VARIABLES
- %HANDLERS
- Stores HANDLERS of the languages, where key is a language name, and the value is a language object.
- $INITSCRIPT
- Contents path to the init-script file.
METHODS
Note that all "HCT::Lang" functionality is method based; use "HCT::Lang->get_handler" rather than "HCT::Lang::get_handler".- init ()
- Initializes all languages defined in @languages. Each language will be loaded and corresponding handler will be created in %HANDLERS.
- langlist ()
- Returns list of avaliable languages from %HANDLERS.
- is_defined (LANGUAGE)
- Takes language and returns true if such language defined and false, if no.
- unify_name (LANGUAGE)
- Takes language name (LANGUAGE) and returns unified name.
- get_handler (LANGUAGE)
- Takes language name (LANGUAGE) and returns language handler or undef.
- load (LANGUAGE, FILE, PACKAGE)
- Takes language name (LANGUAGE), file name (FILE) and package name (PACKAGE) as arguments and try to init language handler: will be called method "new".
- provide_file_associations (LANGUAGE, PACKAGE)
- Takes language name (LANGUAGE) and language package name (PACKAGE) and saves file associations of this language to the global list %HCT::FILE_ASSOCIATIONS.
POD ERRORS
Hey! The above document had some coding errors, which are explained below:- Around line 85:
- You forgot a '=back' before '=head1'
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre