1HCT::Lang(3)          User Contributed Perl Documentation         HCT::Lang(3)
2
3
4

NAME

6       HCT::Lang - Class of lanugages. Loads and provides connection with HCT.
7

DESCRIPTION

9       This package is responsible for loading HDL into the HCT environment.
10
11       HCT::Lang will automatically call the method "new" of each language
12       package to get handler.
13

VARIABLES

15       %HANDLERS
16           Stores HANDLERS of the languages, where key is a language name, and
17           the value is a language object.
18
19       $INITSCRIPT
20           Contents path to the init-script file.
21

METHODS

23       Note that all "HCT::Lang" functionality is method based; use
24       "HCT::Lang->get_handler" rather than "HCT::Lang::get_handler".
25
26       init ()
27           Initializes all languages defined in @languages. Each language will
28           be loaded and corresponding handler will be created in %HANDLERS.
29
30       langlist ()
31           Returns list of avaliable languages from %HANDLERS.
32
33       is_defined (LANGUAGE)
34           Takes language and returns true if such language defined and false,
35           if no.
36
37       unify_name (LANGUAGE)
38           Takes language name (LANGUAGE) and returns unified name.
39
40       get_handler (LANGUAGE)
41           Takes language name (LANGUAGE) and returns language handler or
42           undef.
43
44       load (LANGUAGE, FILE, PACKAGE)
45           Takes language name (LANGUAGE), file name (FILE) and package name
46           (PACKAGE) as arguments and try to init language handler: will be
47           called method "new".
48
49       provide_file_associations (LANGUAGE, PACKAGE)
50           Takes language name (LANGUAGE) and language package name (PACKAGE)
51           and saves file associations of this language to the global list
52           %HCT::FILE_ASSOCIATIONS.
53

POD ERRORS

55       Hey! The above document had some coding errors, which are explained
56       below:
57
58       Around line 85:
59           You forgot a '=back' before '=head1'
60
61
62
63perl v5.34.0                      2022-01-20                      HCT::Lang(3)
Impressum