Permalink
Browse files

Taught grammar to handle verbose output for genuine methods, not just…

… abstract ones.
  • Loading branch information...
1 parent 5668318 commit 0bed1ac2185789d196493e8c1d0a3487d6450b4b @philcrow philcrow committed Aug 31, 2010
Showing with 9,371 additions and 8,489 deletions.
  1. +5 −3 lib/Java/Javap/Generator/Perl6.pm
  2. +9,354 −8,483 lib/Java/Javap/Grammar.pm
  3. +12 −3 lib/Java/Javap/javap.grammar
@@ -341,13 +341,15 @@ method [% elem.name -%]
[% END %]
[% BLOCK constant_whole %]
- method [% elem.name %] (--> [% elem.type.perl_type_name %]) is export { [% IF elem.type.perl_type_name == 'Str'
+ method [% elem.name %] (--> [% elem.type.perl_type_name %]) is export {[%
+ IF elem.value %] return [% IF elem.type.perl_type_name == 'Str'
%]'[% elem.value %]';[%
ELSIF elem.type.perl_type_name == 'Int' or
elem.type.perl_type_nmae == 'Num'
- %][% elem.value %][%
+ %][% elem.value %];[%
ELSE
- %] ... [% END %] }
+ %] ... [% END %][%
+ ELSE %] ... [% END %]}
[% END %]
EO_Template
}
Oops, something went wrong.

0 comments on commit 0bed1ac

Please sign in to comment.