-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alec Chen <alec@cpan.org>
- Loading branch information
Showing
3 changed files
with
106 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
use Doxygen::Lua; | ||
|
||
my $input = $ARGV[0]; | ||
my $p = Doxygen::Lua->new; | ||
print $p->parse($input); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--------------------------------- | ||
--! @file | ||
--! @brief a Doxygen::Lua example | ||
--------------------------------- | ||
|
||
--! table is supported | ||
|
||
PARAMETER = { | ||
a = 1, | ||
b = 2, | ||
c = 3, | ||
} | ||
|
||
--! my name | ||
AUTHOR = 'Alec Chen' | ||
|
||
--! my email | ||
EMAIL = 'alec@cpan.org' | ||
|
||
--! @brief The factorial is an example of a recursive function | ||
--! @param n a positive integer | ||
--! @return return the product of all positive integers less than or equal to n | ||
|
||
function factorial(n) | ||
if n == 0 then | ||
return 1 | ||
else | ||
return n * factorial(n - 1) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters