| 1 |
wakaba |
1.1 |
package WebHACC::Language::Default; |
| 2 |
|
|
use strict; |
| 3 |
|
|
require WebHACC::Language::Base; |
| 4 |
|
|
push our @ISA, 'WebHACC::Language::Base'; |
| 5 |
|
|
|
| 6 |
|
|
sub new ($) { |
| 7 |
|
|
my $self = bless {}, shift; |
| 8 |
|
|
return $self; |
| 9 |
|
|
} # new |
| 10 |
|
|
|
| 11 |
wakaba |
1.2 |
sub generate_syntax_error_section ($) { |
| 12 |
wakaba |
1.1 |
my $self = shift; |
| 13 |
|
|
|
| 14 |
wakaba |
1.2 |
my $out = $self->output; |
| 15 |
wakaba |
1.1 |
|
| 16 |
wakaba |
1.4 |
$out->start_section (role => 'parse-errors'); |
| 17 |
|
|
$out->start_error_list (role => 'parse-errors'); |
| 18 |
wakaba |
1.1 |
|
| 19 |
wakaba |
1.3 |
$self->result->add_error (input => $self->input, |
| 20 |
wakaba |
1.2 |
level => 'u', |
| 21 |
|
|
layer => 'syntax', |
| 22 |
wakaba |
1.4 |
type => 'media type not supported:syntax', |
| 23 |
wakaba |
1.2 |
text => $self->input->{media_type}); |
| 24 |
|
|
|
| 25 |
wakaba |
1.4 |
$out->end_error_list (role => 'parse-errors'); |
| 26 |
wakaba |
1.1 |
$out->end_section; |
| 27 |
wakaba |
1.2 |
} # generate_syntax_error_section |
| 28 |
wakaba |
1.1 |
|
| 29 |
wakaba |
1.2 |
sub generate_source_string_section ($) { } |
| 30 |
wakaba |
1.1 |
|
| 31 |
|
|
sub generate_structure_error_section ($) { } |
| 32 |
|
|
|
| 33 |
|
|
1; |