-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris White
committed
Nov 10, 2018
1 parent
e001b9d
commit a08718b
Showing
12 changed files
with
163 additions
and
78 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
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
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
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
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 |
---|---|---|
@@ -1,31 +1,5 @@ | ||
#!/usr/bin/env perl | ||
# XML::Axk::L::L0 - DUMMY axk language, version 0 | ||
# Copyright (c) 2018 cxw42. All rights reserved. Artistic 2. | ||
# This is not a real axk language - it exists for testing. | ||
# axk L0.pm: A dummy language that fails loading. Language "0" is reserved | ||
# since "0" is falsy in Perl. Reserving this language permits using Boolean | ||
# tests instead of definedness tests. | ||
|
||
package XML::Axk::L::L0; | ||
use XML::Axk::Base; | ||
|
||
# Config | ||
our $C_WANT_TEXT = 1; | ||
|
||
# Packages we invoke by hand | ||
require XML::Axk::Language; | ||
|
||
# Import ========================================================= {{{1 | ||
|
||
sub import { | ||
#say "update: ",ref \&update, Dumper(\&update); | ||
my $target = caller; | ||
#say "XAL0 run from $target:\n", Dumper(\@_); | ||
XML::Axk::Language->import( | ||
target => $target | ||
); | ||
my $class = shift; | ||
my ($fn, $lineno, $source_text) = @_; | ||
#say "Got source text len ", length($source_text), " at $fn:$lineno:\n-----------------\n$source_text\n-----------------"; | ||
} #import() | ||
|
||
#}}}1 | ||
1; | ||
# vi: set ts=4 sts=4 sw=4 et ai fo-=ro foldmethod=marker fdl=1: # | ||
0; # fail loading |
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,31 @@ | ||
#!/usr/bin/env perl | ||
# XML::Axk::L::LTEST - DUMMY axk language, version 0 | ||
# Copyright (c) 2018 cxw42. All rights reserved. Artistic 2. | ||
# This is not a real axk language - it exists for testing. | ||
|
||
package XML::Axk::L::LTEST; | ||
use XML::Axk::Base; | ||
|
||
# Config | ||
our $C_WANT_TEXT = 1; | ||
|
||
# Packages we invoke by hand | ||
require XML::Axk::Language; | ||
|
||
# Import ========================================================= {{{1 | ||
|
||
sub import { | ||
#say "update: ",ref \&update, Dumper(\&update); | ||
my $target = caller; | ||
#say "XALTEST run from $target:\n", Dumper(\@_); | ||
XML::Axk::Language->import( | ||
target => $target | ||
); | ||
my $class = shift; | ||
my ($fn, $lineno, $source_text) = @_; | ||
#say "Got source text len ", length($source_text), " at $fn:$lineno:\n-----------------\n$source_text\n-----------------"; | ||
} #import() | ||
|
||
#}}}1 | ||
1; | ||
# vi: set ts=4 sts=4 sw=4 et ai fo-=ro foldmethod=marker fdl=1: # |
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
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
Oops, something went wrong.