kuniri 0.0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +9 -7
- data/COPYING +160 -656
- data/Gemfile +4 -3
- data/README.md +57 -27
- data/Rakefile +3 -1
- data/bin/kuniri +50 -26
- data/data/aggregation_lang.rb +33 -0
- data/data/attribute_lang.rb +14 -87
- data/data/class_lang.rb +19 -41
- data/data/comment_lang.rb +52 -0
- data/data/conditional_lang.rb +14 -41
- data/data/constructor_lang.rb +4 -12
- data/data/end_block_lang.rb +7 -6
- data/data/extern_requirement_lang.rb +10 -17
- data/data/function_behavior_lang.rb +17 -66
- data/data/global_function_lang.rb +26 -0
- data/data/lang_syntax.rb +82 -49
- data/data/method_lang.rb +26 -0
- data/data/module_namespace_lang.rb +8 -13
- data/data/repetition_lang.rb +19 -32
- data/data/token_lang.rb +2 -44
- data/data/variable_behaviour_lang.rb +43 -0
- data/data/variable_global_lang.rb +13 -72
- data/kuniri.gemspec +4 -4
- data/lib/kuniri/core/configuration/language_available.rb +2 -2
- data/lib/kuniri/core/kuniri.rb +32 -24
- data/lib/kuniri/core/setting.rb +51 -85
- data/lib/kuniri/error/parser_error.rb +9 -0
- data/lib/kuniri/language/abstract_container/structured_and_oo/aggregation.rb +29 -0
- data/lib/kuniri/language/abstract_container/structured_and_oo/attribute.rb +0 -40
- data/lib/kuniri/language/abstract_container/structured_and_oo/global_tokens.rb +20 -0
- data/lib/kuniri/language/abstract_container/structured_and_oo/repetition.rb +9 -1
- data/lib/kuniri/language/abstract_container/structured_and_oo/variable_global.rb +0 -35
- data/lib/kuniri/language/container_data/structured_and_oo/aggregation_data.rb +23 -0
- data/lib/kuniri/language/container_data/structured_and_oo/attribute_data.rb +4 -2
- data/lib/kuniri/language/container_data/structured_and_oo/basic_structure.rb +24 -0
- data/lib/kuniri/language/container_data/structured_and_oo/class_data.rb +13 -19
- data/lib/kuniri/language/container_data/structured_and_oo/conditional_data.rb +2 -13
- data/lib/kuniri/language/container_data/structured_and_oo/constructor_data.rb +2 -0
- data/lib/kuniri/language/container_data/structured_and_oo/extern_requirement_data.rb +11 -6
- data/lib/kuniri/language/container_data/structured_and_oo/{file_element.rb → file_element_data.rb} +11 -9
- data/lib/kuniri/language/container_data/structured_and_oo/function_abstract.rb +58 -11
- data/lib/kuniri/language/container_data/structured_and_oo/function_data.rb +3 -3
- data/lib/kuniri/language/container_data/structured_and_oo/manager_basic_structure_data.rb +55 -0
- data/lib/kuniri/language/container_data/structured_and_oo/method_data.rb +5 -4
- data/lib/kuniri/language/container_data/structured_and_oo/module_namespace_data.rb +3 -1
- data/lib/kuniri/language/container_data/structured_and_oo/repetition_data.rb +2 -13
- data/lib/kuniri/language/container_data/structured_and_oo/variable_global_data.rb +2 -0
- data/lib/kuniri/language/language.rb +37 -11
- data/lib/kuniri/language/metadata.rb +29 -0
- data/lib/kuniri/language/ruby/aggregation_ruby.rb +37 -0
- data/lib/kuniri/language/ruby/attribute_ruby.rb +23 -38
- data/lib/kuniri/language/ruby/class_ruby.rb +2 -10
- data/lib/kuniri/language/ruby/conditional_ruby.rb +20 -6
- data/lib/kuniri/language/ruby/constructor_ruby.rb +5 -7
- data/lib/kuniri/language/ruby/end_block_ruby.rb +1 -1
- data/lib/kuniri/language/ruby/function_behavior_ruby.rb +1 -9
- data/lib/kuniri/language/ruby/global_function_ruby.rb +32 -0
- data/lib/kuniri/language/ruby/method_ruby.rb +33 -0
- data/lib/kuniri/language/ruby/repetition_ruby.rb +60 -14
- data/lib/kuniri/language/ruby/ruby_syntax.rb +76 -49
- data/lib/kuniri/parser/output_factory.rb +29 -0
- data/lib/kuniri/parser/output_format.rb +134 -0
- data/lib/kuniri/parser/parser.rb +3 -7
- data/lib/kuniri/parser/xml_builder_engine.rb +94 -0
- data/lib/kuniri/parser/xml_output_format.rb +143 -0
- data/lib/kuniri/state_machine/OO_structured_fsm/aggregation_state.rb +45 -0
- data/lib/kuniri/state_machine/OO_structured_fsm/attribute_state.rb +0 -1
- data/lib/kuniri/state_machine/OO_structured_fsm/basic_structure_state.rb +182 -0
- data/lib/kuniri/state_machine/OO_structured_fsm/class_state.rb +12 -3
- data/lib/kuniri/state_machine/OO_structured_fsm/conditional_state.rb +11 -68
- data/lib/kuniri/state_machine/OO_structured_fsm/constructor_state.rb +7 -52
- data/lib/kuniri/state_machine/OO_structured_fsm/function_behaviour_state.rb +86 -0
- data/lib/kuniri/state_machine/OO_structured_fsm/include_state.rb +2 -3
- data/lib/kuniri/state_machine/OO_structured_fsm/method_state.rb +8 -50
- data/lib/kuniri/state_machine/OO_structured_fsm/oo_structured_state.rb +6 -1
- data/lib/kuniri/state_machine/OO_structured_fsm/repetition_state.rb +10 -59
- data/lib/kuniri/state_machine/OO_structured_fsm/token_state_machine.rb +4 -0
- data/lib/kuniri/state_machine/OO_structured_fsm/variable_state.rb +0 -1
- data/lib/kuniri/version.rb +1 -1
- data/other/analyseFile.asta +0 -0
- data/spec/core/kuniri_spec.rb +2 -1
- data/spec/core/setting_spec.rb +35 -61
- data/spec/language/abstract_container/aggregation_spec.rb +13 -0
- data/spec/language/abstract_container/extern_requirement_spec.rb +13 -0
- data/spec/language/container_data/structured_and_oo/aggregation_data_spec.rb +29 -0
- data/spec/language/container_data/structured_and_oo/attribute_data_spec.rb +9 -2
- data/spec/language/container_data/structured_and_oo/class_data_spec.rb +1 -46
- data/spec/language/container_data/structured_and_oo/constructor_data_spec.rb +32 -2
- data/spec/language/container_data/structured_and_oo/extern_requirement_data_spec.rb +31 -7
- data/spec/language/container_data/structured_and_oo/{file_element_spec.rb → file_element_data_spec.rb} +21 -5
- data/spec/language/container_data/structured_and_oo/function_abstract_spec.rb +213 -0
- data/spec/language/container_data/structured_and_oo/function_data_spec.rb +31 -2
- data/spec/language/container_data/structured_and_oo/manager_basic_structure_data_spec.rb +150 -0
- data/spec/language/container_data/structured_and_oo/method_data_spec.rb +80 -0
- data/spec/language/container_data/structured_and_oo/module_namespace_spec.rb +7 -1
- data/spec/language/container_data/structured_and_oo/variable_global_data_spec.rb +9 -0
- data/spec/language/language_factory_spec.rb +1 -1
- data/spec/language/language_spec.rb +46 -9
- data/spec/language/ruby/aggregation_ruby_spec.rb +80 -0
- data/spec/language/ruby/class_ruby_spec.rb +66 -6
- data/spec/language/ruby/constructor_ruby_spec.rb +1 -1
- data/spec/language/ruby/end_block_ruby_spec.rb +11 -0
- data/spec/language/ruby/extern_requirement_ruby_spec.rb +59 -0
- data/spec/language/ruby/function_behavior_ruby_spec.rb +54 -2
- data/spec/language/ruby/global_test/.kuniri.yml +4 -0
- data/spec/language/ruby/global_test/complete_class_ruby_spec.rb +161 -0
- data/spec/language/ruby/global_test/conditional/.kuniri.yml +4 -0
- data/spec/language/ruby/global_test/conditional/.kuniri1.yml +4 -0
- data/spec/language/ruby/global_test/conditional/.kuniri2.yml +4 -0
- data/spec/language/ruby/global_test/conditional/.kuniri3.yml +4 -0
- data/spec/language/ruby/global_test/conditional/.kuniri4.yml +4 -0
- data/spec/language/ruby/global_test/conditional/.kuniri5.yml +4 -0
- data/spec/language/ruby/global_test/conditional/.kuniri6.yml +4 -0
- data/spec/language/ruby/global_test/conditional/a_lot_of_conditionals_spec.rb +92 -0
- data/spec/language/ruby/global_test/conditional/constructor_very_mix_conditional_spec.rb +105 -0
- data/spec/language/ruby/global_test/conditional/function_with_conditional_spec.rb +94 -0
- data/spec/language/ruby/global_test/conditional/function_with_nested_conditional_spec.rb +56 -0
- data/spec/language/ruby/global_test/conditional/method_very_mix_conditional_spec.rb +109 -0
- data/spec/language/ruby/global_test/conditional/very_deep_conditional_structure_spec.rb +61 -0
- data/spec/language/ruby/global_test/conditional/very_mix_conditional_spec.rb +105 -0
- data/spec/language/ruby/global_test/conditionalAndRepetition/.kuniri.yml +4 -0
- data/spec/language/ruby/global_test/conditionalAndRepetition/mix_conditional_repetition_spec.rb +57 -0
- data/spec/language/ruby/global_test/repetition/.kuniri.yml +4 -0
- data/spec/language/ruby/global_test/repetition/.kuniri2.yml +4 -0
- data/spec/language/ruby/global_test/repetition/.kuniri3.yml +4 -0
- data/spec/language/ruby/global_test/repetition/.kuniri4.yml +4 -0
- data/spec/language/ruby/global_test/repetition/.kuniri5.yml +4 -0
- data/spec/language/ruby/global_test/repetition/.kuniri6.yml +4 -0
- data/spec/language/ruby/global_test/repetition/.kuniri7.yml +4 -0
- data/spec/language/ruby/global_test/repetition/.kuniri8.yml +4 -0
- data/spec/language/ruby/global_test/repetition/complete_class_integrity.rb +41 -0
- data/spec/language/ruby/global_test/repetition/complete_class_until_loop_spec.rb +42 -0
- data/spec/language/ruby/global_test/repetition/complete_class_while_loop_spec.rb +41 -0
- data/spec/language/ruby/global_test/repetition/complete_class_with_repetition_spec.rb +42 -0
- data/spec/language/ruby/global_test/repetition/constructor_with_mix_repetition_spec.rb +57 -0
- data/spec/language/ruby/global_test/repetition/method_with_mix_repetition_spec.rb +59 -0
- data/spec/language/ruby/global_test/repetition/very_mix_repetition_spec.rb +61 -0
- data/spec/language/ruby/global_test/repetition/very_nested_repetition_spec.rb +65 -0
- data/spec/language/ruby/method_ruby_spec.rb +52 -0
- data/spec/language/ruby/repetition_ruby_spec.rb +175 -8
- data/spec/language/ruby/ruby_syntax_spec.rb +213 -84
- data/spec/parser/output_factory_spec.rb +32 -0
- data/spec/parser/output_format_spec.rb +83 -0
- data/spec/parser/parser_spec.rb +7 -0
- data/spec/parser/xmlSchemaValidate/.kuniri1.yml +3 -0
- data/spec/parser/xmlSchemaValidate/.kuniri2.yml +3 -0
- data/spec/parser/xmlSchemaValidate/.kuniri3.yml +3 -0
- data/spec/parser/xmlSchemaValidate/class_data.xsd +99 -0
- data/spec/parser/xmlSchemaValidate/fullCodeTwo.xsd +119 -0
- data/spec/parser/xmlSchemaValidate/fullCodeWithComments.xsd +146 -0
- data/spec/parser/xmlSchemaValidate/simpleFunction.xsd +25 -0
- data/spec/parser/xmlSchemaValidate/validate_xml_spec.rb +52 -0
- data/spec/parser/xml_builder_engine_spec.rb +258 -0
- data/spec/parser/xml_output_format_spec.rb +274 -0
- data/spec/samples/rubySyntaxParts/aggregation/classAggregation.rb +37 -0
- data/spec/samples/rubySyntaxParts/aggregation/constructorAggregation.rb +36 -0
- data/spec/samples/rubySyntaxParts/aggregation/methodAggregation.rb +36 -0
- data/spec/samples/rubySyntaxParts/aggregation/multipleAggregation.rb +59 -0
- data/spec/samples/rubySyntaxParts/comment/simple_multiple_line_comment_class.rb +7 -0
- data/spec/samples/rubySyntaxParts/comment/simple_single_line_comment_class.rb +2 -1
- data/spec/samples/rubySyntaxParts/conditionalStatment/aLotOfConditionals.rb +42 -0
- data/spec/samples/rubySyntaxParts/conditionalStatment/commonCasesOfConditionals.rb +47 -0
- data/spec/samples/rubySyntaxParts/conditionalStatment/constructorConditional.rb +1 -1
- data/spec/samples/rubySyntaxParts/conditionalStatment/constructorMixConditional.rb +41 -0
- data/spec/samples/rubySyntaxParts/conditionalStatment/methodMixConditional.rb +41 -0
- data/spec/samples/rubySyntaxParts/conditionalStatment/mixConditionalWithRepetition.rb +20 -0
- data/spec/samples/rubySyntaxParts/conditionalStatment/nestedConditional.rb +61 -0
- data/spec/samples/rubySyntaxParts/conditionalStatment/veryDeepConditionalStructure.rb +48 -0
- data/spec/samples/rubySyntaxParts/conditionalStatment/veryMixConditional.rb +37 -0
- data/spec/samples/rubySyntaxParts/fullCode/fullCodeTwo.rb +56 -0
- data/spec/samples/rubySyntaxParts/fullCode/fullCodeWithComments.rb +64 -0
- data/spec/samples/rubySyntaxParts/fullCode/simpleFullCode.rb +9 -1
- data/spec/samples/rubySyntaxParts/method/simpleMethod.rb +2 -0
- data/spec/samples/rubySyntaxParts/repetition/beginWithWhileLoopInClass.rb +10 -0
- data/spec/samples/rubySyntaxParts/repetition/constructorWithMixRepetition.rb +22 -0
- data/spec/samples/rubySyntaxParts/repetition/forLoopInClass.rb +7 -0
- data/spec/samples/rubySyntaxParts/repetition/methodWithMixRepetition.rb +19 -0
- data/spec/samples/rubySyntaxParts/repetition/mixConditionalRepetition.rb +17 -0
- data/spec/samples/rubySyntaxParts/repetition/untilLoopInClass.rb +16 -0
- data/spec/samples/rubySyntaxParts/repetition/veryMixRepetition.rb +28 -0
- data/spec/samples/rubySyntaxParts/repetition/veryNestedRepetition.rb +17 -0
- data/spec/samples/rubySyntaxParts/repetition/whileLoopInClass.rb +12 -0
- data/spec/state_machine/OO_structured_fsm/aggregation_state_spec.rb +67 -0
- data/spec/state_machine/OO_structured_fsm/class_state_spec.rb +15 -0
- data/spec/state_machine/OO_structured_fsm/conditional_state_spec.rb +64 -0
- data/spec/state_machine/OO_structured_fsm/include_state_spec.rb +3 -3
- data/spec/state_machine/OO_structured_fsm/method_state_spec.rb +18 -0
- data/spec/state_machine/OO_structured_fsm/repetition_state_spec.rb +27 -0
- metadata +195 -28
- data/lib/kuniri/core/configuration/monitor_available.rb +0 -13
- data/lib/kuniri/language/abstract_container/structured_and_oo/constructor.rb +0 -52
- data/lib/kuniri/parser/parser_xml.rb +0 -128
- data/spec/language/abstract_container/constructor_spec.rb +0 -13
- data/spec/util/html_logger_spec.rb +0 -31
- data/spec/util/logger_spec.rb +0 -20
- data/spec/util/txt_logger_spec.rb +0 -31
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative '../spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Parser::OutputFactory do
|
4
|
+
|
5
|
+
before :each do
|
6
|
+
@outputFactory = Parser::OutputFactory.new
|
7
|
+
end
|
8
|
+
|
9
|
+
context "When have support to the parser." do
|
10
|
+
|
11
|
+
it "XML support" do
|
12
|
+
tmp = @outputFactory.get_output("xml")
|
13
|
+
expect(tmp.is_a? (Parser::XMLOutputFormat) ).to be true
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
context "When not have support to the parser." do
|
19
|
+
|
20
|
+
it "YML support" do
|
21
|
+
expect{@outputFactory.get_output("yml")}.to raise_error(
|
22
|
+
Error::ParserError)
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
after :each do
|
29
|
+
@outputFactory = nil
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require_relative '../spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Parser::OutputFormat do
|
4
|
+
|
5
|
+
before :all do
|
6
|
+
@outputFormat = Parser::OutputFormat.new
|
7
|
+
end
|
8
|
+
|
9
|
+
context "Create all data" do
|
10
|
+
it "Try to add nil as parameter" do
|
11
|
+
allData = @outputFormat.create_all_data(nil)
|
12
|
+
expect(allData).to eq(nil)
|
13
|
+
end
|
14
|
+
|
15
|
+
#it "Run, but raise exception" do
|
16
|
+
# source =
|
17
|
+
# "spec/samples/rubySyntaxParts/fullCode/simpleCodeWithConditional.rb"
|
18
|
+
# output = "./"
|
19
|
+
# kuniri = Kuniri::Kuniri.new
|
20
|
+
# kuniri.set_configuration(source, "ruby", output, "O1")
|
21
|
+
# kuniri.run_analysis
|
22
|
+
|
23
|
+
# parser = Parser::XMLOutputFormat.new
|
24
|
+
# parser.set_path(p)
|
25
|
+
# expect{parser.create_all_data(kuniri.get_parser())}.to raise_error(
|
26
|
+
# NotImplementedError)
|
27
|
+
#end
|
28
|
+
end
|
29
|
+
|
30
|
+
context "Cannot call unimplemented method." do
|
31
|
+
|
32
|
+
it "Generate class" do
|
33
|
+
expect{@outputFormat.class_generate(nil)}.to raise_error(
|
34
|
+
NotImplementedError)
|
35
|
+
end
|
36
|
+
|
37
|
+
it "Generate inheritance" do
|
38
|
+
expect{@outputFormat.inheritance_generate(nil)}.to raise_error(
|
39
|
+
NotImplementedError)
|
40
|
+
end
|
41
|
+
|
42
|
+
it "Generate parameters" do
|
43
|
+
expect{@outputFormat.parameters_generate(nil)}.to raise_error(
|
44
|
+
NotImplementedError)
|
45
|
+
end
|
46
|
+
|
47
|
+
it "Generate attribute" do
|
48
|
+
expect{@outputFormat.attribute_generate(nil)}.to raise_error(
|
49
|
+
NotImplementedError)
|
50
|
+
end
|
51
|
+
|
52
|
+
it "Generate function" do
|
53
|
+
expect{@outputFormat.function_behaviour_generate("x", nil)}
|
54
|
+
.to raise_error(NotImplementedError)
|
55
|
+
end
|
56
|
+
|
57
|
+
it "Generate global variable" do
|
58
|
+
expect{@outputFormat.global_variable_generate(nil)}.to raise_error(
|
59
|
+
NotImplementedError)
|
60
|
+
end
|
61
|
+
|
62
|
+
it "Generate require" do
|
63
|
+
expect{@outputFormat.extern_requirement_generate(nil)}.to raise_error(
|
64
|
+
NotImplementedError)
|
65
|
+
end
|
66
|
+
|
67
|
+
it "Generate basic structure" do
|
68
|
+
expect{@outputFormat.basic_structure_generate(nil)}.to raise_error(
|
69
|
+
NotImplementedError)
|
70
|
+
end
|
71
|
+
|
72
|
+
it "Generate aggregation" do
|
73
|
+
expect{@outputFormat.aggregation_generate(nil)}.to raise_error(
|
74
|
+
NotImplementedError)
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
after :all do
|
80
|
+
@outputFormat = nil
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
data/spec/parser/parser_spec.rb
CHANGED
@@ -16,6 +16,13 @@ RSpec.describe Parser::Parser do
|
|
16
16
|
@parser.start_parser
|
17
17
|
expect(@parser.fileLanguage.size).to eq(@filesProject.size)
|
18
18
|
end
|
19
|
+
|
20
|
+
it "Try a empty file path" do
|
21
|
+
@filesProject = ""
|
22
|
+
@parser = Parser::Parser.new(@filesProject)
|
23
|
+
expect{@parser.start_parser}.to raise_error(
|
24
|
+
Error::ConfigurationFileError)
|
25
|
+
end
|
19
26
|
end
|
20
27
|
|
21
28
|
after :each do
|
@@ -0,0 +1,99 @@
|
|
1
|
+
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<xs:element name="kuniri">
|
3
|
+
<xs:complexType>
|
4
|
+
<xs:sequence>
|
5
|
+
<xs:element name="externRequirementData" maxOccurs="unbounded" minOccurs="0">
|
6
|
+
<xs:complexType>
|
7
|
+
<xs:simpleContent>
|
8
|
+
<xs:extension base="xs:string">
|
9
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
10
|
+
</xs:extension>
|
11
|
+
</xs:simpleContent>
|
12
|
+
</xs:complexType>
|
13
|
+
</xs:element>
|
14
|
+
<xs:element name="moduleData">
|
15
|
+
<xs:complexType>
|
16
|
+
<xs:simpleContent>
|
17
|
+
<xs:extension base="xs:string">
|
18
|
+
<xs:attribute type="xs:string" name="name"/>
|
19
|
+
</xs:extension>
|
20
|
+
</xs:simpleContent>
|
21
|
+
</xs:complexType>
|
22
|
+
</xs:element>
|
23
|
+
<xs:element name="classData">
|
24
|
+
<xs:complexType>
|
25
|
+
<xs:sequence>
|
26
|
+
<xs:element name="inheritanceData">
|
27
|
+
<xs:complexType>
|
28
|
+
<xs:simpleContent>
|
29
|
+
<xs:extension base="xs:string">
|
30
|
+
<xs:attribute type="xs:string" name="name"/>
|
31
|
+
</xs:extension>
|
32
|
+
</xs:simpleContent>
|
33
|
+
</xs:complexType>
|
34
|
+
</xs:element>
|
35
|
+
<xs:element name="attributeData" maxOccurs="unbounded" minOccurs="0">
|
36
|
+
<xs:complexType>
|
37
|
+
<xs:simpleContent>
|
38
|
+
<xs:extension base="xs:string">
|
39
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
40
|
+
<xs:attribute type="xs:string" name="visibility" use="optional"/>
|
41
|
+
</xs:extension>
|
42
|
+
</xs:simpleContent>
|
43
|
+
</xs:complexType>
|
44
|
+
</xs:element>
|
45
|
+
<xs:element name="constructorData">
|
46
|
+
<xs:complexType>
|
47
|
+
<xs:simpleContent>
|
48
|
+
<xs:extension base="xs:string">
|
49
|
+
<xs:attribute type="xs:string" name="name"/>
|
50
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
51
|
+
</xs:extension>
|
52
|
+
</xs:simpleContent>
|
53
|
+
</xs:complexType>
|
54
|
+
</xs:element>
|
55
|
+
<xs:element name="methodData" maxOccurs="unbounded" minOccurs="0">
|
56
|
+
<xs:complexType>
|
57
|
+
<xs:sequence>
|
58
|
+
<xs:element name="commentData">
|
59
|
+
<xs:complexType>
|
60
|
+
<xs:simpleContent>
|
61
|
+
<xs:extension base="xs:string">
|
62
|
+
<xs:attribute type="xs:string" name="text" use="optional"/>
|
63
|
+
</xs:extension>
|
64
|
+
</xs:simpleContent>
|
65
|
+
</xs:complexType>
|
66
|
+
</xs:element>
|
67
|
+
<xs:element name="parameterData">
|
68
|
+
<xs:complexType>
|
69
|
+
<xs:simpleContent>
|
70
|
+
<xs:extension base="xs:string">
|
71
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
72
|
+
</xs:extension>
|
73
|
+
</xs:simpleContent>
|
74
|
+
</xs:complexType>
|
75
|
+
</xs:element>
|
76
|
+
<xs:element name="each" minOccurs="0">
|
77
|
+
<xs:complexType>
|
78
|
+
<xs:simpleContent>
|
79
|
+
<xs:extension base="xs:string">
|
80
|
+
<xs:attribute type="xs:string" name="expression"/>
|
81
|
+
<xs:attribute type="xs:byte" name="level"/>
|
82
|
+
</xs:extension>
|
83
|
+
</xs:simpleContent>
|
84
|
+
</xs:complexType>
|
85
|
+
</xs:element>
|
86
|
+
</xs:sequence>
|
87
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
88
|
+
<xs:attribute type="xs:string" name="visibility" use="optional"/>
|
89
|
+
</xs:complexType>
|
90
|
+
</xs:element>
|
91
|
+
</xs:sequence>
|
92
|
+
<xs:attribute type="xs:string" name="name"/>
|
93
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
94
|
+
</xs:complexType>
|
95
|
+
</xs:element>
|
96
|
+
</xs:sequence>
|
97
|
+
</xs:complexType>
|
98
|
+
</xs:element>
|
99
|
+
</xs:schema>
|
@@ -0,0 +1,119 @@
|
|
1
|
+
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<xs:element name="kuniri">
|
3
|
+
<xs:complexType>
|
4
|
+
<xs:sequence>
|
5
|
+
<xs:element name="classData">
|
6
|
+
<xs:complexType>
|
7
|
+
<xs:sequence>
|
8
|
+
<xs:element name="inheritanceData">
|
9
|
+
<xs:complexType>
|
10
|
+
<xs:simpleContent>
|
11
|
+
<xs:extension base="xs:string">
|
12
|
+
<xs:attribute type="xs:string" name="name"/>
|
13
|
+
</xs:extension>
|
14
|
+
</xs:simpleContent>
|
15
|
+
</xs:complexType>
|
16
|
+
</xs:element>
|
17
|
+
<xs:element name="attributeData">
|
18
|
+
<xs:complexType>
|
19
|
+
<xs:simpleContent>
|
20
|
+
<xs:extension base="xs:string">
|
21
|
+
<xs:attribute type="xs:string" name="name"/>
|
22
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
23
|
+
</xs:extension>
|
24
|
+
</xs:simpleContent>
|
25
|
+
</xs:complexType>
|
26
|
+
</xs:element>
|
27
|
+
<xs:element name="constructorData">
|
28
|
+
<xs:complexType>
|
29
|
+
<xs:sequence>
|
30
|
+
<xs:element name="if">
|
31
|
+
<xs:complexType>
|
32
|
+
<xs:simpleContent>
|
33
|
+
<xs:extension base="xs:string">
|
34
|
+
<xs:attribute type="xs:string" name="expression"/>
|
35
|
+
<xs:attribute type="xs:byte" name="level"/>
|
36
|
+
</xs:extension>
|
37
|
+
</xs:simpleContent>
|
38
|
+
</xs:complexType>
|
39
|
+
</xs:element>
|
40
|
+
<xs:element name="for">
|
41
|
+
<xs:complexType>
|
42
|
+
<xs:simpleContent>
|
43
|
+
<xs:extension base="xs:string">
|
44
|
+
<xs:attribute type="xs:string" name="expression"/>
|
45
|
+
<xs:attribute type="xs:byte" name="level"/>
|
46
|
+
</xs:extension>
|
47
|
+
</xs:simpleContent>
|
48
|
+
</xs:complexType>
|
49
|
+
</xs:element>
|
50
|
+
</xs:sequence>
|
51
|
+
<xs:attribute type="xs:string" name="name"/>
|
52
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
53
|
+
</xs:complexType>
|
54
|
+
</xs:element>
|
55
|
+
<xs:element name="methodData" maxOccurs="unbounded" minOccurs="0">
|
56
|
+
<xs:complexType mixed="true">
|
57
|
+
<xs:choice maxOccurs="unbounded" minOccurs="0">
|
58
|
+
<xs:element name="while">
|
59
|
+
<xs:complexType>
|
60
|
+
<xs:simpleContent>
|
61
|
+
<xs:extension base="xs:string">
|
62
|
+
<xs:attribute type="xs:string" name="expression" use="optional"/>
|
63
|
+
<xs:attribute type="xs:byte" name="level" use="optional"/>
|
64
|
+
</xs:extension>
|
65
|
+
</xs:simpleContent>
|
66
|
+
</xs:complexType>
|
67
|
+
</xs:element>
|
68
|
+
<xs:element name="parameterData">
|
69
|
+
<xs:complexType>
|
70
|
+
<xs:simpleContent>
|
71
|
+
<xs:extension base="xs:string">
|
72
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
73
|
+
</xs:extension>
|
74
|
+
</xs:simpleContent>
|
75
|
+
</xs:complexType>
|
76
|
+
</xs:element>
|
77
|
+
<xs:element name="for">
|
78
|
+
<xs:complexType>
|
79
|
+
<xs:simpleContent>
|
80
|
+
<xs:extension base="xs:string">
|
81
|
+
<xs:attribute type="xs:string" name="expression"/>
|
82
|
+
<xs:attribute type="xs:byte" name="level"/>
|
83
|
+
</xs:extension>
|
84
|
+
</xs:simpleContent>
|
85
|
+
</xs:complexType>
|
86
|
+
</xs:element>
|
87
|
+
<xs:element name="if">
|
88
|
+
<xs:complexType>
|
89
|
+
<xs:simpleContent>
|
90
|
+
<xs:extension base="xs:string">
|
91
|
+
<xs:attribute type="xs:string" name="expression" use="optional"/>
|
92
|
+
<xs:attribute type="xs:byte" name="level" use="optional"/>
|
93
|
+
</xs:extension>
|
94
|
+
</xs:simpleContent>
|
95
|
+
</xs:complexType>
|
96
|
+
</xs:element>
|
97
|
+
<xs:element name="else" minOccurs="0">
|
98
|
+
<xs:complexType>
|
99
|
+
<xs:simpleContent>
|
100
|
+
<xs:extension base="xs:string">
|
101
|
+
<xs:attribute type="xs:byte" name="level"/>
|
102
|
+
</xs:extension>
|
103
|
+
</xs:simpleContent>
|
104
|
+
</xs:complexType>
|
105
|
+
</xs:element>
|
106
|
+
</xs:choice>
|
107
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
108
|
+
<xs:attribute type="xs:string" name="visibility" use="optional"/>
|
109
|
+
</xs:complexType>
|
110
|
+
</xs:element>
|
111
|
+
</xs:sequence>
|
112
|
+
<xs:attribute type="xs:string" name="name"/>
|
113
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
114
|
+
</xs:complexType>
|
115
|
+
</xs:element>
|
116
|
+
</xs:sequence>
|
117
|
+
</xs:complexType>
|
118
|
+
</xs:element>
|
119
|
+
</xs:schema>
|
@@ -0,0 +1,146 @@
|
|
1
|
+
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<xs:element name="kuniri">
|
3
|
+
<xs:complexType>
|
4
|
+
<xs:sequence>
|
5
|
+
<xs:element name="classData">
|
6
|
+
<xs:complexType>
|
7
|
+
<xs:sequence>
|
8
|
+
<xs:element name="commentData">
|
9
|
+
<xs:complexType>
|
10
|
+
<xs:simpleContent>
|
11
|
+
<xs:extension base="xs:string">
|
12
|
+
<xs:attribute type="xs:string" name="text"/>
|
13
|
+
</xs:extension>
|
14
|
+
</xs:simpleContent>
|
15
|
+
</xs:complexType>
|
16
|
+
</xs:element>
|
17
|
+
<xs:element name="inheritanceData">
|
18
|
+
<xs:complexType>
|
19
|
+
<xs:simpleContent>
|
20
|
+
<xs:extension base="xs:string">
|
21
|
+
<xs:attribute type="xs:string" name="name"/>
|
22
|
+
</xs:extension>
|
23
|
+
</xs:simpleContent>
|
24
|
+
</xs:complexType>
|
25
|
+
</xs:element>
|
26
|
+
<xs:element name="attributeData">
|
27
|
+
<xs:complexType>
|
28
|
+
<xs:simpleContent>
|
29
|
+
<xs:extension base="xs:string">
|
30
|
+
<xs:attribute type="xs:string" name="name"/>
|
31
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
32
|
+
</xs:extension>
|
33
|
+
</xs:simpleContent>
|
34
|
+
</xs:complexType>
|
35
|
+
</xs:element>
|
36
|
+
<xs:element name="constructorData">
|
37
|
+
<xs:complexType>
|
38
|
+
<xs:sequence>
|
39
|
+
<xs:element name="commentData">
|
40
|
+
<xs:complexType>
|
41
|
+
<xs:simpleContent>
|
42
|
+
<xs:extension base="xs:string">
|
43
|
+
<xs:attribute type="xs:string" name="text"/>
|
44
|
+
</xs:extension>
|
45
|
+
</xs:simpleContent>
|
46
|
+
</xs:complexType>
|
47
|
+
</xs:element>
|
48
|
+
<xs:element name="if">
|
49
|
+
<xs:complexType>
|
50
|
+
<xs:simpleContent>
|
51
|
+
<xs:extension base="xs:string">
|
52
|
+
<xs:attribute type="xs:string" name="expression"/>
|
53
|
+
<xs:attribute type="xs:byte" name="level"/>
|
54
|
+
</xs:extension>
|
55
|
+
</xs:simpleContent>
|
56
|
+
</xs:complexType>
|
57
|
+
</xs:element>
|
58
|
+
<xs:element name="for">
|
59
|
+
<xs:complexType>
|
60
|
+
<xs:simpleContent>
|
61
|
+
<xs:extension base="xs:string">
|
62
|
+
<xs:attribute type="xs:string" name="expression"/>
|
63
|
+
<xs:attribute type="xs:byte" name="level"/>
|
64
|
+
</xs:extension>
|
65
|
+
</xs:simpleContent>
|
66
|
+
</xs:complexType>
|
67
|
+
</xs:element>
|
68
|
+
</xs:sequence>
|
69
|
+
<xs:attribute type="xs:string" name="name"/>
|
70
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
71
|
+
</xs:complexType>
|
72
|
+
</xs:element>
|
73
|
+
<xs:element name="methodData" maxOccurs="unbounded" minOccurs="0">
|
74
|
+
<xs:complexType mixed="true">
|
75
|
+
<xs:choice maxOccurs="unbounded" minOccurs="0">
|
76
|
+
<xs:element name="commentData">
|
77
|
+
<xs:complexType>
|
78
|
+
<xs:simpleContent>
|
79
|
+
<xs:extension base="xs:string">
|
80
|
+
<xs:attribute type="xs:string" name="text" use="optional"/>
|
81
|
+
</xs:extension>
|
82
|
+
</xs:simpleContent>
|
83
|
+
</xs:complexType>
|
84
|
+
</xs:element>
|
85
|
+
<xs:element name="while">
|
86
|
+
<xs:complexType>
|
87
|
+
<xs:simpleContent>
|
88
|
+
<xs:extension base="xs:string">
|
89
|
+
<xs:attribute type="xs:string" name="expression" use="optional"/>
|
90
|
+
<xs:attribute type="xs:byte" name="level" use="optional"/>
|
91
|
+
</xs:extension>
|
92
|
+
</xs:simpleContent>
|
93
|
+
</xs:complexType>
|
94
|
+
</xs:element>
|
95
|
+
<xs:element name="parameterData">
|
96
|
+
<xs:complexType>
|
97
|
+
<xs:simpleContent>
|
98
|
+
<xs:extension base="xs:string">
|
99
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
100
|
+
</xs:extension>
|
101
|
+
</xs:simpleContent>
|
102
|
+
</xs:complexType>
|
103
|
+
</xs:element>
|
104
|
+
<xs:element name="for">
|
105
|
+
<xs:complexType>
|
106
|
+
<xs:simpleContent>
|
107
|
+
<xs:extension base="xs:string">
|
108
|
+
<xs:attribute type="xs:string" name="expression"/>
|
109
|
+
<xs:attribute type="xs:byte" name="level"/>
|
110
|
+
</xs:extension>
|
111
|
+
</xs:simpleContent>
|
112
|
+
</xs:complexType>
|
113
|
+
</xs:element>
|
114
|
+
<xs:element name="if">
|
115
|
+
<xs:complexType>
|
116
|
+
<xs:simpleContent>
|
117
|
+
<xs:extension base="xs:string">
|
118
|
+
<xs:attribute type="xs:string" name="expression" use="optional"/>
|
119
|
+
<xs:attribute type="xs:byte" name="level" use="optional"/>
|
120
|
+
</xs:extension>
|
121
|
+
</xs:simpleContent>
|
122
|
+
</xs:complexType>
|
123
|
+
</xs:element>
|
124
|
+
<xs:element name="else" minOccurs="0">
|
125
|
+
<xs:complexType>
|
126
|
+
<xs:simpleContent>
|
127
|
+
<xs:extension base="xs:string">
|
128
|
+
<xs:attribute type="xs:byte" name="level"/>
|
129
|
+
</xs:extension>
|
130
|
+
</xs:simpleContent>
|
131
|
+
</xs:complexType>
|
132
|
+
</xs:element>
|
133
|
+
</xs:choice>
|
134
|
+
<xs:attribute type="xs:string" name="name" use="optional"/>
|
135
|
+
<xs:attribute type="xs:string" name="visibility" use="optional"/>
|
136
|
+
</xs:complexType>
|
137
|
+
</xs:element>
|
138
|
+
</xs:sequence>
|
139
|
+
<xs:attribute type="xs:string" name="name"/>
|
140
|
+
<xs:attribute type="xs:string" name="visibility"/>
|
141
|
+
</xs:complexType>
|
142
|
+
</xs:element>
|
143
|
+
</xs:sequence>
|
144
|
+
</xs:complexType>
|
145
|
+
</xs:element>
|
146
|
+
</xs:schema>
|