Natural Docs Version 1.2 |
NaturalDocs:: LanguagesA package to manage all the programming languages Natural Docs supports. Usage and Dependencies
Summary
extensions
A hash of all the defined languages’ extensions. The keys are the all-lowercase extensions, and the values are indexes into languages. shebangs
A hash of all the defined languages’ strings to search for in the shebang (#!) line. The keys are the all-lowercase strings, and the values are indexes into languages. SeparateMember
Separates a class from its member. If there are multiple member separators in the string, it assumes the last one is correct and all previous ones are part of the class name. For example, “package::class::function” will be split into “package::class” and “function”. Parameters
ReturnsAn array. If the string had a member separator in it, the first item will be the class and the second the identifier. If there was no member separator, there will only be one item, which will contain the original string. Add
Adds a <NaturalDocs::Languages::Language> object to the package. UsageThis function is only to be called by NaturalDocs::Languages::Base->New(). Languages self-add when created, so there is no need to call anywhere else. Parameters
|
my @languages |
my %extensions |
my %shebangs |
sub LanguageOf #(sourceFile) |
sub IsSupported #(file) |
sub SeparateMember #(string) |
sub Add #(languageObject) |
sub New |