Permalink
Browse files

* Import Pugs 6.2.13.15 from Hackage.

  • Loading branch information...
audreyt committed Mar 27, 2010
0 parents commit 1384f0b3765db68557b5ee2e2cef2417f5562a82
Showing with 104,536 additions and 0 deletions.
  1. +93 −0 Pugs/Configure.PL
  2. +20 −0 Pugs/LICENSE
  3. +184 −0 Pugs/Pugs.cabal
  4. +8 −0 Pugs/Setup.lhs
  5. +512 −0 Pugs/blib6/pugs/perl5/lib/Parse/Yapp.pm
  6. +471 −0 Pugs/blib6/pugs/perl5/lib/Parse/Yapp/Driver.pm
  7. +381 −0 Pugs/blib6/pugs/perl5/lib/Parse/Yapp/Grammar.pm
  8. +939 −0 Pugs/blib6/pugs/perl5/lib/Parse/Yapp/Lalr.pm
  9. +186 −0 Pugs/blib6/pugs/perl5/lib/Parse/Yapp/Options.pm
  10. +92 −0 Pugs/blib6/pugs/perl5/lib/Parse/Yapp/Output.pm
  11. +1,093 −0 Pugs/blib6/pugs/perl5/lib/Parse/Yapp/Parse.pm
  12. +36 −0 Pugs/blib6/pugs/perl5/lib/Pugs/AST/Expression.pm
  13. +120 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Compiler/Grammar.pm
  14. +506 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Compiler/Regex.pm
  15. +123 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Compiler/RegexPerl5.pm
  16. +219 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Compiler/Rule.pm
  17. +48 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Compiler/Token.pm
  18. +169 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Emitter/Grammar/Perl5.pm
  19. +405 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Parsec.pm
  20. +611 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5.pm
  21. +140 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5/CharClass.pm
  22. +1,152 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5/Ratchet.pm
  23. +250 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5/Regex.pm
  24. +854 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl6/Ratchet.pm
  25. +201 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Grammar/Base.pm
  26. +349 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Grammar/Precedence.pm
  27. +3 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Grammar/Rule.pm
  28. +15,209 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Grammar/Rule.pmc
  29. +608 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Grammar/Rule2.pm
  30. +263 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Grammar/RulePure.pm
  31. +62 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Runtime/Common.pm
  32. +309 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Runtime/Match.pm
  33. +83 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Runtime/Match/HsBridge.pm
  34. +830 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Runtime/Regex.pm
  35. +5 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Runtime/Rule.pm
  36. +230 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Runtime/StrPos.pm
  37. +124 −0 Pugs/blib6/pugs/perl5/lib/Pugs/Runtime/Tracer.pm
  38. +29,854 −0 Pugs/cbits/Prelude_pm.c
  39. +21,019 −0 Pugs/cbits/Test_pm.c
  40. +590 −0 Pugs/perl5/p5embed.c
  41. +30 −0 Pugs/perl5/p5embed.h
  42. +16 −0 Pugs/perl5/perlxsi.c
  43. +144 −0 Pugs/perl5/pugsembed.c
  44. +33 −0 Pugs/perl5/pugsembed.h
  45. +20 −0 Pugs/src/Main.hs
  46. +478 −0 Pugs/src/Pugs.hs
  47. +484 −0 Pugs/src/Pugs/AST.hs
  48. +9 −0 Pugs/src/Pugs/AST.hs-boot
  49. +210 −0 Pugs/src/Pugs/AST/Eval.hs
  50. +236 −0 Pugs/src/Pugs/AST/Functions.hs
  51. +1,340 −0 Pugs/src/Pugs/AST/Internals.hs
  52. +67 −0 Pugs/src/Pugs/AST/Internals.hs-boot
  53. +1,474 −0 Pugs/src/Pugs/AST/Internals/Instances.hs
  54. +103 −0 Pugs/src/Pugs/AST/Pad.hs
  55. +27 −0 Pugs/src/Pugs/AST/Pos.hs
  56. +26 −0 Pugs/src/Pugs/AST/Prag.hs
  57. +81 −0 Pugs/src/Pugs/AST/SIO.hs
  58. +14 −0 Pugs/src/Pugs/AST/Scope.hs
  59. +457 −0 Pugs/src/Pugs/AST/Types.hs
  60. +173 −0 Pugs/src/Pugs/AST/Utils.hs
  61. +270 −0 Pugs/src/Pugs/Bind.hs
  62. +178 −0 Pugs/src/Pugs/Class.hs
  63. +102 −0 Pugs/src/Pugs/CodeGen.hs
  64. +16 −0 Pugs/src/Pugs/CodeGen/Binary.hs
  65. +14 −0 Pugs/src/Pugs/CodeGen/JSON.hs
  66. +17 −0 Pugs/src/Pugs/CodeGen/PIL1.hs
  67. +455 −0 Pugs/src/Pugs/CodeGen/PIR.hs
  68. +153 −0 Pugs/src/Pugs/CodeGen/PIR/Prelude.hs
  69. +14 −0 Pugs/src/Pugs/CodeGen/Perl5.hs
  70. +28 −0 Pugs/src/Pugs/CodeGen/YAML.hs
  71. +459 −0 Pugs/src/Pugs/Compile.hs
  72. +228 −0 Pugs/src/Pugs/Compile/Pugs.hs
  73. +74 −0 Pugs/src/Pugs/Config.hs
  74. +47 −0 Pugs/src/Pugs/Cont.hs
  75. +37 −0 Pugs/src/Pugs/Embed.hs
  76. +29 −0 Pugs/src/Pugs/Embed/Haskell.hs
  77. +133 −0 Pugs/src/Pugs/Embed/Parrot.hs
  78. +382 −0 Pugs/src/Pugs/Embed/Perl5.hs
  79. +17 −0 Pugs/src/Pugs/Embed/Pugs.hs
  80. +1,586 −0 Pugs/src/Pugs/Eval.hs
  81. +652 −0 Pugs/src/Pugs/Eval/Var.hs
  82. +74 −0 Pugs/src/Pugs/Exp.hs
  83. +9 −0 Pugs/src/Pugs/Exp.hs-boot
  84. +52 −0 Pugs/src/Pugs/External.hs
  85. +121 −0 Pugs/src/Pugs/External/Haskell.hs
  86. +90 −0 Pugs/src/Pugs/Help.hs
  87. +18 −0 Pugs/src/Pugs/Internals.hs
  88. +228 −0 Pugs/src/Pugs/Junc.hs
  89. +572 −0 Pugs/src/Pugs/Lexer.hs
  90. +25 −0 Pugs/src/Pugs/Meta.hs
  91. +15 −0 Pugs/src/Pugs/Meta/Class.hs
  92. +60 −0 Pugs/src/Pugs/Meta/Perl5.hs
  93. +37 −0 Pugs/src/Pugs/Meta/Str.hs
  94. +430 −0 Pugs/src/Pugs/Monads.hs
  95. +123 −0 Pugs/src/Pugs/PIL1.hs
  96. +373 −0 Pugs/src/Pugs/PIL1/Instances.hs
  97. +2,138 −0 Pugs/src/Pugs/Parser.hs
  98. +24 −0 Pugs/src/Pugs/Parser.hs-boot
  99. +297 −0 Pugs/src/Pugs/Parser/Charnames.hs
  100. +105 −0 Pugs/src/Pugs/Parser/Doc.hs
  101. +24 −0 Pugs/src/Pugs/Parser/Export.hs
  102. +686 −0 Pugs/src/Pugs/Parser/Literal.hs
  103. +111 −0 Pugs/src/Pugs/Parser/Number.hs
  104. +752 −0 Pugs/src/Pugs/Parser/Operator.hs
  105. +210 −0 Pugs/src/Pugs/Parser/Program.hs
  106. +382 −0 Pugs/src/Pugs/Parser/Types.hs
  107. +108 −0 Pugs/src/Pugs/Parser/Unsafe.hs
  108. +306 −0 Pugs/src/Pugs/Parser/Util.hs
  109. +854 −0 Pugs/src/Pugs/Prelude.hs
  110. +262 −0 Pugs/src/Pugs/Pretty.hs
  111. +2,243 −0 Pugs/src/Pugs/Prim.hs
  112. +59 −0 Pugs/src/Pugs/Prim/Code.hs
  113. +212 −0 Pugs/src/Pugs/Prim/Eval.hs
  114. +110 −0 Pugs/src/Pugs/Prim/FileTest.hs
  115. +144 −0 Pugs/src/Pugs/Prim/Keyed.hs
  116. +52 −0 Pugs/src/Pugs/Prim/Lifts.hs
  117. +491 −0 Pugs/src/Pugs/Prim/List.hs
  118. +338 −0 Pugs/src/Pugs/Prim/Match.hs
  119. +174 −0 Pugs/src/Pugs/Prim/Numeric.hs
  120. +38 −0 Pugs/src/Pugs/Prim/Param.hs
  121. +136 −0 Pugs/src/Pugs/Prim/Yaml.hs
  122. +31 −0 Pugs/src/Pugs/Rule.hs
  123. +265 −0 Pugs/src/Pugs/Run.hs
  124. +194 −0 Pugs/src/Pugs/Run/Args.hs
  125. +148 −0 Pugs/src/Pugs/Run/Perl5.hs
  126. +87 −0 Pugs/src/Pugs/Shell.hs
  127. +935 −0 Pugs/src/Pugs/Types.hs
  128. +305 −0 Pugs/src/Pugs/Types/Array.hs
  129. +45 −0 Pugs/src/Pugs/Types/Code.hs
  130. +47 −0 Pugs/src/Pugs/Types/Handle.hs
  131. +159 −0 Pugs/src/Pugs/Types/Hash.hs
  132. +14 −0 Pugs/src/Pugs/Types/Object.hs
  133. +38 −0 Pugs/src/Pugs/Types/Pair.hs
  134. +7 −0 Pugs/src/Pugs/Types/Rule.hs
  135. +55 −0 Pugs/src/Pugs/Types/Scalar.hs
  136. +10 −0 Pugs/src/Pugs/Types/Thunk.hs
  137. +603 −0 Pugs/src/Pugs/Val.hs
  138. +144 −0 Pugs/src/Pugs/Val/Base.hs
  139. +2 −0 Pugs/src/Pugs/Val/Capture.hs
  140. +253 −0 Pugs/src/Pugs/Val/Code.hs
  141. +43 −0 Pugs/src/Pugs/Version.hs
  142. +4 −0 README
@@ -0,0 +1,93 @@
+#!/usr/bin/perl
+
+use 5.006;
+use strict;
+use Cwd;
+use Config;
+use ExtUtils::Embed;
+
+my $embed_flags = "-I" . cwd();
+my $ccdlflags = "";
+my $flags = "$Config{ccflags} $Config{ccdlflags} ";
+
+if ($flags =~ /\S/) {
+ $flags =~ s{([\\"'])}{\\$1}g;
+ my @flags = grep { length $_ } split /\s+/, $flags;
+
+ if ($^O eq 'MSWin32') {
+ if ($Config{libperl} =~ /lib(\w+)\.a/) {
+ $embed_flags .= " -optl-l$1 ";
+ }
+ elsif (defined &Win32::BuildNumber) {
+ # We are on ActivePerl -- Kluge massively!
+
+ no warnings 'once';
+ our %MY_CONFIG = %Config;
+ *Config = *MY_CONFIG;
+ *Config::Config = *MY_CONFIG;
+ *ExtUtils::MM_Win32::Config = *MY_CONFIG;
+ *ExtUtils::MM_Unix::Config = *MY_CONFIG;
+
+ $Config{ccflags} =~ s/-libpath:"?(.*?)"? //g;
+ $Config{ccdlflags} =~ s/-libpath:"?(.*?)"? //g;
+ $Config{lddlflags} =~ s/-libpath:"?(.*?)"? //g;
+ $Config{ldflags} =~ s/-libpath:"?(.*?)"? //g
+ or die "ldflags: $Config{ldflags} does not contain -libpath:";
+
+ my $lib = "$1/$Config{libperl}";
+ $embed_flags .= " -optl\"$lib\" ";
+
+ $flags = "$Config{ccflags} $Config{ccdlflags}";
+ $flags =~ s{([\\"'])}{\\$1}g;
+ @flags = grep { length $_ } split /\s+/, $flags;
+ }
+ else {
+ warn "Unrecognized libperl shared library: $Config{libperl}, proceeding anyway...\n";
+ }
+
+ $ccdlflags .= (/^-[DIL]/ ? ' -optc' : ' -optl') . qq["$_" ] for @flags;
+ $embed_flags .= " -optc-Ddirent=DIRENT";
+ }
+ else {
+ $embed_flags .= " -optc$_" for grep length, split(/\s+/, ccopts());
+ $embed_flags .= " -optl$_" for grep length, split(/\s+/, ldopts());
+ }
+
+ $embed_flags .= " $_" for grep { /-[DIL]/ } split(/\s+/, ccopts());
+ $embed_flags .= " $_" for grep { /-[DIL]/ } split(/\s+/, ldopts());
+
+ if ($Config{osname} eq 'cygwin') {
+ my $cygpath = sub {
+ my $path = `cygpath -m @_`;
+ chomp $path;
+ return $path;
+ };
+ $embed_flags =~ s{(/usr/\S+)}{$cygpath->($1)}eg;
+ $embed_flags =~ s{/cygdrive/(\w)/}{$1:/}g;
+ #warn "** Cygwin embedding flags: embed_flags\n";
+ }
+}
+
+my @include_dirs = split(/\s+/, perl_inc());
+s/^-I// for @include_dirs;
+
+my @cc_options = map { /^-optc(.+)/ ? $1 : () } (split(/\s+/, $embed_flags), split(/\s+/, $ccdlflags));
+my @ld_options = grep { not /,/ } map { /^-optl(.+)/ ? $1 : () } (split(/\s+/, $embed_flags), split(/\s+/, $ccdlflags));
+
+my $info = << ".";
+executable: pugs
+ghc-options: $embed_flags $ccdlflags
+include-dirs: @include_dirs
+cc-options: @cc_options
+ld-options: @ld_options
+.
+
+# Hack for OSX 10.6
+$info =~ s/-arch x86_64 (-arch i386) -arch ppc/$1/g;
+$info =~ s/-opt[lc]-arch -opt[lc]x86_64 (-opt[lc]-arch -opt[lc]i386) -opt[lc]-arch -opt[lc]ppc/$1/g;
+
+open INFO, ">Pugs.buildinfo" or die "Cannot write build info: $!";
+print INFO $info;
+close INFO;
+
+xsinit();
@@ -0,0 +1,20 @@
+The "MIT" License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,184 @@
+Name : Pugs
+Version : 6.2.13.15
+license : BSD3
+license-file : LICENSE
+cabal-version : >= 1.2.3
+copyright : 2005-2008, The Pugs Contributors
+maintainer : Audrey Tang <audreyt@audreyt.org>
+category : Language, Pugs
+stability : experimental
+build-type : Custom
+homepage : http://pugscode.org/
+synopsis : A Perl 6 Implementation
+description : A Perl 6 Implementation
+author : Audrey Tang <audreyt@audreyt.org>
+Tested-With: GHC==6.8.2, GHC==6.8.3, GHC==6.10.1, GHC==6.12.1
+data-files :
+ blib6/pugs/perl5/lib/Parse/Yapp/Driver.pm
+ blib6/pugs/perl5/lib/Parse/Yapp/Grammar.pm
+ blib6/pugs/perl5/lib/Parse/Yapp/Lalr.pm
+ blib6/pugs/perl5/lib/Parse/Yapp/Options.pm
+ blib6/pugs/perl5/lib/Parse/Yapp/Output.pm
+ blib6/pugs/perl5/lib/Parse/Yapp/Parse.pm
+ blib6/pugs/perl5/lib/Parse/Yapp.pm
+ blib6/pugs/perl5/lib/Pugs/AST/Expression.pm
+ blib6/pugs/perl5/lib/Pugs/Compiler/Grammar.pm
+ blib6/pugs/perl5/lib/Pugs/Compiler/Regex.pm
+ blib6/pugs/perl5/lib/Pugs/Compiler/RegexPerl5.pm
+ blib6/pugs/perl5/lib/Pugs/Compiler/Rule.pm
+ blib6/pugs/perl5/lib/Pugs/Compiler/Token.pm
+ blib6/pugs/perl5/lib/Pugs/Emitter/Grammar/Perl5.pm
+ blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Parsec.pm
+ blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5/CharClass.pm
+ blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5/Ratchet.pm
+ blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5/Regex.pm
+ blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl5.pm
+ blib6/pugs/perl5/lib/Pugs/Emitter/Rule/Perl6/Ratchet.pm
+ blib6/pugs/perl5/lib/Pugs/Grammar/Base.pm
+ blib6/pugs/perl5/lib/Pugs/Grammar/Precedence.pm
+ blib6/pugs/perl5/lib/Pugs/Grammar/Rule.pm
+ blib6/pugs/perl5/lib/Pugs/Grammar/Rule.pmc
+ blib6/pugs/perl5/lib/Pugs/Grammar/Rule2.pm
+ blib6/pugs/perl5/lib/Pugs/Grammar/RulePure.pm
+ blib6/pugs/perl5/lib/Pugs/Runtime/Common.pm
+ blib6/pugs/perl5/lib/Pugs/Runtime/Match/HsBridge.pm
+ blib6/pugs/perl5/lib/Pugs/Runtime/Match.pm
+ blib6/pugs/perl5/lib/Pugs/Runtime/Regex.pm
+ blib6/pugs/perl5/lib/Pugs/Runtime/Rule.pm
+ blib6/pugs/perl5/lib/Pugs/Runtime/StrPos.pm
+ blib6/pugs/perl5/lib/Pugs/Runtime/Tracer.pm
+extra-source-files:
+ src/Pugs.hs
+ src/Pugs/AST.hs
+ src/Pugs/AST.hs-boot
+ src/Pugs/AST/Eval.hs
+ src/Pugs/AST/Functions.hs
+ src/Pugs/AST/Internals.hs
+ src/Pugs/AST/Internals.hs-boot
+ src/Pugs/AST/Internals/Instances.hs
+ src/Pugs/AST/Pad.hs
+ src/Pugs/AST/Pos.hs
+ src/Pugs/AST/Prag.hs
+ src/Pugs/AST/SIO.hs
+ src/Pugs/AST/Scope.hs
+ src/Pugs/AST/Utils.hs
+ src/Pugs/AST/Types.hs
+ src/Pugs/Bind.hs
+ src/Pugs/Class.hs
+ src/Pugs/CodeGen.hs
+ src/Pugs/CodeGen/JSON.hs
+ src/Pugs/CodeGen/PIL1.hs
+ src/Pugs/CodeGen/PIR.hs
+ src/Pugs/CodeGen/PIR/Prelude.hs
+ src/Pugs/CodeGen/Perl5.hs
+ src/Pugs/CodeGen/YAML.hs
+ src/Pugs/CodeGen/Binary.hs
+ src/Pugs/Compile.hs
+ src/Pugs/Compile/Pugs.hs
+ src/Pugs/Config.hs
+ src/Pugs/Cont.hs
+ src/Pugs/Embed.hs
+ src/Pugs/Embed/Haskell.hs
+ src/Pugs/Embed/Parrot.hs
+ src/Pugs/Embed/Perl5.hs
+ src/Pugs/Embed/Pugs.hs
+ src/Pugs/Eval.hs
+ src/Pugs/Eval/Var.hs
+ src/Pugs/Exp.hs
+ src/Pugs/Exp.hs-boot
+ src/Pugs/External.hs
+ src/Pugs/External/Haskell.hs
+ src/Pugs/Help.hs
+ src/Pugs/Internals.hs
+ src/Pugs/Junc.hs
+ src/Pugs/Lexer.hs
+ src/Pugs/Meta.hs
+ src/Pugs/Meta/Class.hs
+ src/Pugs/Meta/Perl5.hs
+ src/Pugs/Meta/Str.hs
+ src/Pugs/Monads.hs
+ src/Pugs/PIL1.hs
+ src/Pugs/PIL1/Instances.hs
+ src/Pugs/Parser.hs
+ src/Pugs/Parser.hs-boot
+ src/Pugs/Parser/Charnames.hs
+ src/Pugs/Parser/Doc.hs
+ src/Pugs/Parser/Export.hs
+ src/Pugs/Parser/Literal.hs
+ src/Pugs/Parser/Number.hs
+ src/Pugs/Parser/Operator.hs
+ src/Pugs/Parser/Program.hs
+ src/Pugs/Parser/Types.hs
+ src/Pugs/Parser/Unsafe.hs
+ src/Pugs/Parser/Util.hs
+ src/Pugs/Prelude.hs
+ src/Pugs/Pretty.hs
+ src/Pugs/Prim.hs
+ src/Pugs/Prim/Code.hs
+ src/Pugs/Prim/Eval.hs
+ src/Pugs/Prim/FileTest.hs
+ src/Pugs/Prim/Keyed.hs
+ src/Pugs/Prim/Lifts.hs
+ src/Pugs/Prim/List.hs
+ src/Pugs/Prim/Match.hs
+ src/Pugs/Prim/Numeric.hs
+ src/Pugs/Prim/Param.hs
+ src/Pugs/Prim/Yaml.hs
+ src/Pugs/Rule.hs
+ src/Pugs/Run.hs
+ src/Pugs/Run/Args.hs
+ src/Pugs/Run/Perl5.hs
+ src/Pugs/Shell.hs
+ src/Pugs/Types.hs
+ src/Pugs/Types/Array.hs
+ src/Pugs/Types/Code.hs
+ src/Pugs/Types/Handle.hs
+ src/Pugs/Types/Hash.hs
+ src/Pugs/Types/Object.hs
+ src/Pugs/Types/Pair.hs
+ src/Pugs/Types/Rule.hs
+ src/Pugs/Types/Scalar.hs
+ src/Pugs/Types/Thunk.hs
+ src/Pugs/Val.hs
+ src/Pugs/Val/Base.hs
+ src/Pugs/Val/Capture.hs
+ src/Pugs/Val/Code.hs
+ src/Pugs/Version.hs
+ Configure.PL
+ perl5/p5embed.c
+ perl5/p5embed.h
+ perl5/perlxsi.c
+ perl5/pugsembed.c
+ perl5/pugsembed.h
+
+flag Perl5
+ description: Enable Perl 5 Embedding
+ default: True
+
+executable pugs
+ main-is: Main.hs
+ hs-source-dirs: src
+
+ build-depends:
+ base >= 3 && < 5, haskell98, filepath, mtl, stm, parsec < 3.0.0, network,
+ pretty, time, random, process, containers, bytestring,
+ array, directory, utf8-string, binary, haskeline >= 0.2.1, FindBin,
+ control-timeout >= 0.1.2,
+
+ MetaObject >= 0.0.4,
+ HsParrot >= 0.0.2,
+ pugs-compat >= 0.0.5,
+ pugs-DrIFT >= 2.2.3.0,
+ stringtable-atom >= 0.0.4,
+ HsSyck >= 0.44
+ -- HsPerl5
+
+ if flag(Perl5)
+ cpp-options: -DPUGS_HAVE_PERL5=1
+
+ c-sources:
+ cbits/Prelude_pm.c cbits/Test_pm.c
+ perl5/p5embed.c
+
+ includes:
+ perl5/p5embed.h
@@ -0,0 +1,8 @@
+#!/usr/bin/env runghc
+> import Distribution.Simple
+> import System.Cmd (rawSystem)
+>
+> main :: IO ()
+> main = writeBuildInfo >> defaultMainWithHooks defaultUserHooks
+> where
+> writeBuildInfo = rawSystem "perl" ["Configure.PL"]
Oops, something went wrong.

0 comments on commit 1384f0b

Please sign in to comment.