annotate Lib/IMPL/Text/Schema.pm @ 25:9dd67fa91ee3

small fix in the dom schema works under text schema
author Sergey
date Tue, 13 Oct 2009 17:51:25 +0400
parents
children c529d386d80e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
1 package IMPL::Text::Schema;
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
2 use strict;
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
3 use warnings;
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
4
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
5 use base qw(IMPL::DOM::Schema);
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
6
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
7 __PACKAGE__->PassThroughArgs;
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
8
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
9 1;
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
10
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
11 __END__
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
12
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
13 =pod
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
14
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
15 =head1 SINOPSYS
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
16
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
17 <schema>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
18 <ComplexNode name="syntax">
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
19 <Node name="Define" type="Statement" minOccur="1" maxOccur="unbounded">
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
20 <Property name="name" type="Word"/>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
21 </Node>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
22 </ComplexNode>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
23 <ComplexType type="Statement" nativeType="IMPL::Text::Schema::Statement">
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
24 <NodeList>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
25 <SwitchNode minOccur="1" maxOccur="unbounded">
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
26 <Node name="Word" type="Word"/>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
27 <Node name="Statement" type="Word"/>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
28 <Node name="Switch" type="Switch"/>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
29 <Node name="List" type="List"/>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
30 </SwitchNode>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
31 </NodeList>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
32 </ComplexType>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
33 </schema>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
34
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
35 =head1 DESCRIPTION
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
36
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
37 Схема текстового файла, которую можно использовать для разбора содержимого
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
38 текстового файла.
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
39
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
40 Схема текстового файла состоит из выражений.
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
41 1. Регулярное выражение является выражением
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
42 2. Строковое значение является выражением.
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
43 3. Выражения объединенные логическими операторами также выражение.
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
44
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
45 Допускаются следующие операторы
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
46 1. Повтор
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
47 2.
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
48
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
49 =head1 METHODS
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
50
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
51 =over
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
52
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
53 =item C<<$schema->compile()>>
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
54
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
55 Возвращает объект для разбора текста.
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
56
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
57 =back
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
58
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
59
9dd67fa91ee3 small fix in the dom schema
Sergey
parents:
diff changeset
60 =cut