activefacts 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +21 -0
- data/README.md +60 -0
- data/Rakefile +3 -80
- data/activefacts.gemspec +36 -0
- data/bin/afgen +4 -2
- data/bin/cql +5 -1
- data/lib/activefacts.rb +3 -12
- data/lib/activefacts/{vocabulary/query_evaluator.rb → query/evaluator.rb} +0 -0
- data/lib/activefacts/version.rb +2 -2
- metadata +48 -296
- data/History.txt +0 -4
- data/LICENSE +0 -19
- data/Manifest.txt +0 -165
- data/README.rdoc +0 -81
- data/css/offline.css +0 -3
- data/css/orm2.css +0 -124
- data/css/print.css +0 -8
- data/css/style-print.css +0 -357
- data/css/style.css +0 -387
- data/download.html +0 -110
- data/examples/CQL/Address.cql +0 -44
- data/examples/CQL/Blog.cql +0 -54
- data/examples/CQL/CompanyDirectorEmployee.cql +0 -56
- data/examples/CQL/Death.cql +0 -17
- data/examples/CQL/Diplomacy.cql +0 -48
- data/examples/CQL/Genealogy.cql +0 -98
- data/examples/CQL/Insurance.cql +0 -320
- data/examples/CQL/Marriage.cql +0 -18
- data/examples/CQL/Metamodel.cql +0 -493
- data/examples/CQL/Monogamy.cql +0 -24
- data/examples/CQL/MultiInheritance.cql +0 -22
- data/examples/CQL/NonRoleId.cql +0 -14
- data/examples/CQL/OddIdentifier.cql +0 -18
- data/examples/CQL/OilSupply.cql +0 -53
- data/examples/CQL/OneToOnes.cql +0 -17
- data/examples/CQL/Orienteering.cql +0 -111
- data/examples/CQL/PersonPlaysGame.cql +0 -18
- data/examples/CQL/RedundantDependency.cql +0 -34
- data/examples/CQL/SchoolActivities.cql +0 -33
- data/examples/CQL/SeparateSubtype.cql +0 -30
- data/examples/CQL/ServiceDirector.cql +0 -276
- data/examples/CQL/SimplestUnary.cql +0 -12
- data/examples/CQL/Supervision.cql +0 -34
- data/examples/CQL/WaiterTips.cql +0 -33
- data/examples/CQL/Warehousing.cql +0 -101
- data/examples/CQL/WindowInRoomInBldg.cql +0 -28
- data/examples/CQL/unit.cql +0 -474
- data/examples/index.html +0 -420
- data/examples/intro.html +0 -327
- data/examples/local.css +0 -24
- data/index.html +0 -111
- data/lib/activefacts/cql.rb +0 -35
- data/lib/activefacts/cql/CQLParser.treetop +0 -158
- data/lib/activefacts/cql/Context.treetop +0 -48
- data/lib/activefacts/cql/Expressions.treetop +0 -67
- data/lib/activefacts/cql/FactTypes.treetop +0 -358
- data/lib/activefacts/cql/Language/English.treetop +0 -315
- data/lib/activefacts/cql/LexicalRules.treetop +0 -253
- data/lib/activefacts/cql/ObjectTypes.treetop +0 -210
- data/lib/activefacts/cql/Rakefile +0 -14
- data/lib/activefacts/cql/Terms.treetop +0 -183
- data/lib/activefacts/cql/ValueTypes.treetop +0 -202
- data/lib/activefacts/cql/compiler.rb +0 -156
- data/lib/activefacts/cql/compiler/clause.rb +0 -1137
- data/lib/activefacts/cql/compiler/constraint.rb +0 -581
- data/lib/activefacts/cql/compiler/entity_type.rb +0 -457
- data/lib/activefacts/cql/compiler/expression.rb +0 -443
- data/lib/activefacts/cql/compiler/fact.rb +0 -390
- data/lib/activefacts/cql/compiler/fact_type.rb +0 -421
- data/lib/activefacts/cql/compiler/query.rb +0 -106
- data/lib/activefacts/cql/compiler/shared.rb +0 -161
- data/lib/activefacts/cql/compiler/value_type.rb +0 -174
- data/lib/activefacts/cql/nodes.rb +0 -49
- data/lib/activefacts/cql/parser.rb +0 -241
- data/lib/activefacts/dependency_analyser.rb +0 -182
- data/lib/activefacts/generate/absorption.rb +0 -70
- data/lib/activefacts/generate/composition.rb +0 -118
- data/lib/activefacts/generate/cql.rb +0 -714
- data/lib/activefacts/generate/dm.rb +0 -279
- data/lib/activefacts/generate/help.rb +0 -64
- data/lib/activefacts/generate/helpers/inject.rb +0 -16
- data/lib/activefacts/generate/helpers/oo.rb +0 -162
- data/lib/activefacts/generate/helpers/ordered.rb +0 -605
- data/lib/activefacts/generate/helpers/rails.rb +0 -57
- data/lib/activefacts/generate/html/glossary.rb +0 -461
- data/lib/activefacts/generate/json.rb +0 -337
- data/lib/activefacts/generate/null.rb +0 -32
- data/lib/activefacts/generate/rails/models.rb +0 -246
- data/lib/activefacts/generate/rails/schema.rb +0 -216
- data/lib/activefacts/generate/records.rb +0 -46
- data/lib/activefacts/generate/ruby.rb +0 -133
- data/lib/activefacts/generate/sql/mysql.rb +0 -280
- data/lib/activefacts/generate/sql/server.rb +0 -273
- data/lib/activefacts/generate/stats.rb +0 -69
- data/lib/activefacts/generate/text.rb +0 -27
- data/lib/activefacts/generate/topics.rb +0 -265
- data/lib/activefacts/generate/traits/datavault.rb +0 -241
- data/lib/activefacts/generate/traits/oo.rb +0 -73
- data/lib/activefacts/generate/traits/ordered.rb +0 -33
- data/lib/activefacts/generate/traits/ruby.rb +0 -210
- data/lib/activefacts/generate/transform/datavault.rb +0 -266
- data/lib/activefacts/generate/transform/surrogate.rb +0 -214
- data/lib/activefacts/generate/version.rb +0 -26
- data/lib/activefacts/input/cql.rb +0 -43
- data/lib/activefacts/input/orm.rb +0 -1636
- data/lib/activefacts/mapping/rails.rb +0 -132
- data/lib/activefacts/persistence.rb +0 -15
- data/lib/activefacts/persistence/columns.rb +0 -446
- data/lib/activefacts/persistence/foreignkey.rb +0 -187
- data/lib/activefacts/persistence/index.rb +0 -240
- data/lib/activefacts/persistence/object_type.rb +0 -198
- data/lib/activefacts/persistence/reference.rb +0 -434
- data/lib/activefacts/persistence/tables.rb +0 -380
- data/lib/activefacts/registry.rb +0 -11
- data/lib/activefacts/support.rb +0 -132
- data/lib/activefacts/vocabulary.rb +0 -9
- data/lib/activefacts/vocabulary/extensions.rb +0 -1348
- data/lib/activefacts/vocabulary/metamodel.rb +0 -570
- data/lib/activefacts/vocabulary/verbaliser.rb +0 -804
- data/script/txt2html +0 -71
- data/spec/absorption_spec.rb +0 -95
- data/spec/cql/comparison_spec.rb +0 -89
- data/spec/cql/context_spec.rb +0 -94
- data/spec/cql/contractions_spec.rb +0 -224
- data/spec/cql/deontic_spec.rb +0 -88
- data/spec/cql/entity_type_spec.rb +0 -320
- data/spec/cql/expressions_spec.rb +0 -66
- data/spec/cql/fact_type_matching_spec.rb +0 -338
- data/spec/cql/french_spec.rb +0 -21
- data/spec/cql/parser/bad_literals_spec.rb +0 -86
- data/spec/cql/parser/constraints_spec.rb +0 -19
- data/spec/cql/parser/entity_types_spec.rb +0 -106
- data/spec/cql/parser/expressions_spec.rb +0 -199
- data/spec/cql/parser/fact_types_spec.rb +0 -44
- data/spec/cql/parser/literals_spec.rb +0 -312
- data/spec/cql/parser/pragmas_spec.rb +0 -89
- data/spec/cql/parser/value_types_spec.rb +0 -42
- data/spec/cql/role_matching_spec.rb +0 -148
- data/spec/cql/samples_spec.rb +0 -244
- data/spec/cql_cql_spec.rb +0 -73
- data/spec/cql_dm_spec.rb +0 -136
- data/spec/cql_mysql_spec.rb +0 -69
- data/spec/cql_parse_spec.rb +0 -34
- data/spec/cql_ruby_spec.rb +0 -73
- data/spec/cql_sql_spec.rb +0 -72
- data/spec/cql_symbol_tables_spec.rb +0 -261
- data/spec/cqldump_spec.rb +0 -170
- data/spec/helpers/array_matcher.rb +0 -23
- data/spec/helpers/ctrl_c_support.rb +0 -52
- data/spec/helpers/diff_matcher.rb +0 -39
- data/spec/helpers/file_matcher.rb +0 -34
- data/spec/helpers/parse_to_ast_matcher.rb +0 -80
- data/spec/helpers/string_matcher.rb +0 -30
- data/spec/helpers/test_parser.rb +0 -15
- data/spec/norma_cql_spec.rb +0 -66
- data/spec/norma_ruby_spec.rb +0 -62
- data/spec/norma_ruby_sql_spec.rb +0 -107
- data/spec/norma_sql_spec.rb +0 -57
- data/spec/norma_tables_spec.rb +0 -95
- data/spec/ruby_api_spec.rb +0 -23
- data/spec/spec_helper.rb +0 -35
- data/spec/transform_surrogate_spec.rb +0 -59
- data/status.html +0 -138
- data/why.html +0 -60
data/History.txt
DELETED
data/LICENSE
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2008 Clifford Heath.
|
|
2
|
-
|
|
3
|
-
This software is provided 'as-is', without any express or implied warranty.
|
|
4
|
-
In no event will the authors be held liable for any damages arising from the
|
|
5
|
-
use of this software.
|
|
6
|
-
|
|
7
|
-
Permission is granted to anyone to use this software for any purpose,
|
|
8
|
-
including commercial applications, and to alter it and redistribute it
|
|
9
|
-
freely, subject to the following restrictions:
|
|
10
|
-
|
|
11
|
-
1. The origin of this software must not be misrepresented; you must not
|
|
12
|
-
claim that you wrote the original software. If you use this software
|
|
13
|
-
in a product, an acknowledgment in the product documentation would be
|
|
14
|
-
appreciated but is not required.
|
|
15
|
-
|
|
16
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
|
17
|
-
misrepresented as being the original software.
|
|
18
|
-
|
|
19
|
-
3. This notice may not be removed or altered from any source distribution.
|
data/Manifest.txt
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
History.txt
|
|
2
|
-
LICENSE
|
|
3
|
-
Manifest.txt
|
|
4
|
-
README.rdoc
|
|
5
|
-
Rakefile
|
|
6
|
-
bin/afgen
|
|
7
|
-
bin/cql
|
|
8
|
-
css/offline.css
|
|
9
|
-
css/orm2.css
|
|
10
|
-
css/print.css
|
|
11
|
-
css/style-print.css
|
|
12
|
-
css/style.css
|
|
13
|
-
download.html
|
|
14
|
-
examples/CQL/Address.cql
|
|
15
|
-
examples/CQL/Blog.cql
|
|
16
|
-
examples/CQL/CompanyDirectorEmployee.cql
|
|
17
|
-
examples/CQL/Death.cql
|
|
18
|
-
examples/CQL/Diplomacy.cql
|
|
19
|
-
examples/CQL/Genealogy.cql
|
|
20
|
-
examples/CQL/Insurance.cql
|
|
21
|
-
examples/CQL/JoinEquality.cql
|
|
22
|
-
examples/CQL/Marriage.cql
|
|
23
|
-
examples/CQL/Metamodel.cql
|
|
24
|
-
examples/CQL/Monogamy.cql
|
|
25
|
-
examples/CQL/MonthInSeason.cql
|
|
26
|
-
examples/CQL/Moon.cql
|
|
27
|
-
examples/CQL/MultiInheritance.cql
|
|
28
|
-
examples/CQL/NonRoleId.cql
|
|
29
|
-
examples/CQL/OddIdentifier.cql
|
|
30
|
-
examples/CQL/OilSupply.cql
|
|
31
|
-
examples/CQL/OneToOnes.cql
|
|
32
|
-
examples/CQL/Orienteering.cql
|
|
33
|
-
examples/CQL/PersonPlaysGame.cql
|
|
34
|
-
examples/CQL/RedundantDependency.cql
|
|
35
|
-
examples/CQL/SchoolActivities.cql
|
|
36
|
-
examples/CQL/SeparateSubtype.cql
|
|
37
|
-
examples/CQL/ServiceDirector.cql
|
|
38
|
-
examples/CQL/SimplestUnary.cql
|
|
39
|
-
examples/CQL/SubtypePI.cql
|
|
40
|
-
examples/CQL/Supervision.cql
|
|
41
|
-
examples/CQL/Tests.Test5.Load.cql
|
|
42
|
-
examples/CQL/WaiterTips.cql
|
|
43
|
-
examples/CQL/Warehousing.cql
|
|
44
|
-
examples/CQL/WindowInRoomInBldg.cql
|
|
45
|
-
examples/CQL/unit.cql
|
|
46
|
-
examples/index.html
|
|
47
|
-
examples/intro.html
|
|
48
|
-
examples/local.css
|
|
49
|
-
index.html
|
|
50
|
-
lib/activefacts.rb
|
|
51
|
-
lib/activefacts/cql.rb
|
|
52
|
-
lib/activefacts/cql/CQLParser.treetop
|
|
53
|
-
lib/activefacts/cql/Context.treetop
|
|
54
|
-
lib/activefacts/cql/Expressions.treetop
|
|
55
|
-
lib/activefacts/cql/FactTypes.treetop
|
|
56
|
-
lib/activefacts/cql/Language/English.treetop
|
|
57
|
-
lib/activefacts/cql/LexicalRules.treetop
|
|
58
|
-
lib/activefacts/cql/ObjectTypes.treetop
|
|
59
|
-
lib/activefacts/cql/Rakefile
|
|
60
|
-
lib/activefacts/cql/Terms.treetop
|
|
61
|
-
lib/activefacts/cql/ValueTypes.treetop
|
|
62
|
-
lib/activefacts/cql/compiler.rb
|
|
63
|
-
lib/activefacts/cql/compiler/clause.rb
|
|
64
|
-
lib/activefacts/cql/compiler/constraint.rb
|
|
65
|
-
lib/activefacts/cql/compiler/entity_type.rb
|
|
66
|
-
lib/activefacts/cql/compiler/expression.rb
|
|
67
|
-
lib/activefacts/cql/compiler/fact.rb
|
|
68
|
-
lib/activefacts/cql/compiler/fact_type.rb
|
|
69
|
-
lib/activefacts/cql/compiler/query.rb
|
|
70
|
-
lib/activefacts/cql/compiler/shared.rb
|
|
71
|
-
lib/activefacts/cql/compiler/value_type.rb
|
|
72
|
-
lib/activefacts/cql/nodes.rb
|
|
73
|
-
lib/activefacts/cql/parser.rb
|
|
74
|
-
lib/activefacts/dependency_analyser.rb
|
|
75
|
-
lib/activefacts/generate/absorption.rb
|
|
76
|
-
lib/activefacts/generate/composition.rb
|
|
77
|
-
lib/activefacts/generate/cql.rb
|
|
78
|
-
lib/activefacts/generate/dm.rb
|
|
79
|
-
lib/activefacts/generate/help.rb
|
|
80
|
-
lib/activefacts/generate/helpers/inject.rb
|
|
81
|
-
lib/activefacts/generate/helpers/oo.rb
|
|
82
|
-
lib/activefacts/generate/helpers/ordered.rb
|
|
83
|
-
lib/activefacts/generate/helpers/rails.rb
|
|
84
|
-
lib/activefacts/generate/html/glossary.rb
|
|
85
|
-
lib/activefacts/generate/json.rb
|
|
86
|
-
lib/activefacts/generate/null.rb
|
|
87
|
-
lib/activefacts/generate/records.rb
|
|
88
|
-
lib/activefacts/generate/ruby.rb
|
|
89
|
-
lib/activefacts/generate/sql/mysql.rb
|
|
90
|
-
lib/activefacts/generate/sql/server.rb
|
|
91
|
-
lib/activefacts/generate/stats.rb
|
|
92
|
-
lib/activefacts/generate/rails/schema.rb
|
|
93
|
-
lib/activefacts/generate/rails/models.rb
|
|
94
|
-
lib/activefacts/generate/text.rb
|
|
95
|
-
lib/activefacts/generate/topics.rb
|
|
96
|
-
lib/activefacts/generate/traits/oo.rb
|
|
97
|
-
lib/activefacts/generate/traits/ordered.rb
|
|
98
|
-
lib/activefacts/generate/traits/ruby.rb
|
|
99
|
-
lib/activefacts/generate/traits/datavault.rb
|
|
100
|
-
lib/activefacts/generate/transform/datavault.rb
|
|
101
|
-
lib/activefacts/generate/transform/surrogate.rb
|
|
102
|
-
lib/activefacts/generate/version.rb
|
|
103
|
-
lib/activefacts/input/cql.rb
|
|
104
|
-
lib/activefacts/input/orm.rb
|
|
105
|
-
lib/activefacts/mapping/rails.rb
|
|
106
|
-
lib/activefacts/persistence.rb
|
|
107
|
-
lib/activefacts/persistence/columns.rb
|
|
108
|
-
lib/activefacts/persistence/foreignkey.rb
|
|
109
|
-
lib/activefacts/persistence/index.rb
|
|
110
|
-
lib/activefacts/persistence/object_type.rb
|
|
111
|
-
lib/activefacts/persistence/reference.rb
|
|
112
|
-
lib/activefacts/persistence/tables.rb
|
|
113
|
-
lib/activefacts/registry.rb
|
|
114
|
-
lib/activefacts/support.rb
|
|
115
|
-
lib/activefacts/version.rb
|
|
116
|
-
lib/activefacts/vocabulary.rb
|
|
117
|
-
lib/activefacts/vocabulary/extensions.rb
|
|
118
|
-
lib/activefacts/vocabulary/metamodel.rb
|
|
119
|
-
lib/activefacts/vocabulary/verbaliser.rb
|
|
120
|
-
lib/activefacts/vocabulary/query_evaluator.rb
|
|
121
|
-
script/txt2html
|
|
122
|
-
spec/cql/comparison_spec.rb
|
|
123
|
-
spec/cql/contractions_spec.rb
|
|
124
|
-
spec/cql/entity_type_spec.rb
|
|
125
|
-
spec/cql/expressions_spec.rb
|
|
126
|
-
spec/cql/french_spec.rb
|
|
127
|
-
spec/cql/role_matching_spec.rb
|
|
128
|
-
spec/ruby_api_spec.rb
|
|
129
|
-
spec/absorption_spec.rb
|
|
130
|
-
spec/cql/context_spec.rb
|
|
131
|
-
spec/cql/deontic_spec.rb
|
|
132
|
-
spec/cql/fact_type_matching_spec.rb
|
|
133
|
-
spec/cql/parser/bad_literals_spec.rb
|
|
134
|
-
spec/cql/parser/constraints_spec.rb
|
|
135
|
-
spec/cql/parser/entity_types_spec.rb
|
|
136
|
-
spec/cql/parser/expressions_spec.rb
|
|
137
|
-
spec/cql/parser/fact_types_spec.rb
|
|
138
|
-
spec/cql/parser/literals_spec.rb
|
|
139
|
-
spec/cql/parser/pragmas_spec.rb
|
|
140
|
-
spec/cql/parser/value_types_spec.rb
|
|
141
|
-
spec/cql/samples_spec.rb
|
|
142
|
-
spec/cql_cql_spec.rb
|
|
143
|
-
spec/cql_dm_spec.rb
|
|
144
|
-
spec/cql_mysql_spec.rb
|
|
145
|
-
spec/cql_parse_spec.rb
|
|
146
|
-
spec/cql_ruby_spec.rb
|
|
147
|
-
spec/cql_sql_spec.rb
|
|
148
|
-
spec/cql_symbol_tables_spec.rb
|
|
149
|
-
spec/cqldump_spec.rb
|
|
150
|
-
spec/norma_cql_spec.rb
|
|
151
|
-
spec/norma_ruby_spec.rb
|
|
152
|
-
spec/norma_ruby_sql_spec.rb
|
|
153
|
-
spec/norma_sql_spec.rb
|
|
154
|
-
spec/norma_tables_spec.rb
|
|
155
|
-
spec/helpers/array_matcher.rb
|
|
156
|
-
spec/helpers/ctrl_c_support.rb
|
|
157
|
-
spec/helpers/diff_matcher.rb
|
|
158
|
-
spec/helpers/file_matcher.rb
|
|
159
|
-
spec/helpers/parse_to_ast_matcher.rb
|
|
160
|
-
spec/helpers/string_matcher.rb
|
|
161
|
-
spec/helpers/test_parser.rb
|
|
162
|
-
spec/spec_helper.rb
|
|
163
|
-
spec/transform_surrogate_spec.rb
|
|
164
|
-
status.html
|
|
165
|
-
why.html
|
data/README.rdoc
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
= activefacts
|
|
2
|
-
|
|
3
|
-
* http://dataconstellation.com/ActiveFacts/
|
|
4
|
-
|
|
5
|
-
== DESCRIPTION
|
|
6
|
-
|
|
7
|
-
ActiveFacts provides a fact-based semantic modeling language, the
|
|
8
|
-
Constellation Query Language (CQL). CQL combines natural language
|
|
9
|
-
verbalisation and formal logic, producing a formal language that
|
|
10
|
-
reads like plain English. ActiveFacts converts semantic models from
|
|
11
|
-
CQL to relational and object models in SQL, Ruby and other languages.
|
|
12
|
-
|
|
13
|
-
The generated models are guaranteed congruent, which can eliminate the
|
|
14
|
-
object-relational impedance mismatch. Fact based models are much more
|
|
15
|
-
stable under evolving requirements than either relational or
|
|
16
|
-
object-oriented models, because they directly express the underlying
|
|
17
|
-
conceptual structure as elementary facts, so are not susceptible to
|
|
18
|
-
ramifying change in the way those attribute-oriented approaches are.
|
|
19
|
-
|
|
20
|
-
Semantic modeling is a refinement of fact-based modeling techniques
|
|
21
|
-
such as ORM2, NIAM and others. ActiveFacts can convert ORM2 files from
|
|
22
|
-
NORMA to CQL. Fact-based modeling is closely related to relational
|
|
23
|
-
modeling in the sixth normal form (as Codd intended it!), but the
|
|
24
|
-
generated relation schemas are in 5NF, so they don't suffer from 6NF
|
|
25
|
-
inefficiency. The relational models it derives are highly efficient.
|
|
26
|
-
|
|
27
|
-
== SYNOPSIS:
|
|
28
|
-
|
|
29
|
-
afgen --help
|
|
30
|
-
afgen --sql/server myfile.cql
|
|
31
|
-
afgen --ruby myfile.cql
|
|
32
|
-
afgen --cql myfile.orm
|
|
33
|
-
afgen --transform/surrogate --rails/schema myfile.cql
|
|
34
|
-
afgen --transform/datavault --sql/server myfile.cql
|
|
35
|
-
cql (command-line interpreter, including a query evaluator)
|
|
36
|
-
|
|
37
|
-
== INSTALL:
|
|
38
|
-
|
|
39
|
-
* sudo gem install activefacts
|
|
40
|
-
|
|
41
|
-
== STATUS
|
|
42
|
-
|
|
43
|
-
* The definition language is complete and the main generators are usable.
|
|
44
|
-
|
|
45
|
-
* Arithmetic and aggregate operations in queries are recognised but not compiled.
|
|
46
|
-
|
|
47
|
-
* Queries and derived fact types not yet generated to SQL queries or views..
|
|
48
|
-
|
|
49
|
-
* The Constellation API lacks SQL persistence; it has no Object-Relational Mapper
|
|
50
|
-
(but it's already useful; the CQL compiler uses the generated Ruby code extensively)
|
|
51
|
-
|
|
52
|
-
* Advanced constraint types are mostly ignored by the generators.
|
|
53
|
-
|
|
54
|
-
== REQUIREMENTS:
|
|
55
|
-
|
|
56
|
-
* Treetop parser generator
|
|
57
|
-
|
|
58
|
-
* NORMA (see <http://www.ormfoundation.org/files/>), if you want to
|
|
59
|
-
use ORM (needs Visual Studio Pro or Community edition)
|
|
60
|
-
|
|
61
|
-
== LICENSE:
|
|
62
|
-
|
|
63
|
-
Copyright (c) 2008-2015 Clifford Heath.
|
|
64
|
-
|
|
65
|
-
This software is provided 'as-is', without any express or implied warranty.
|
|
66
|
-
In no event will the authors be held liable for any damages arising from the
|
|
67
|
-
use of this software.
|
|
68
|
-
|
|
69
|
-
Permission is granted to anyone to use this software for any purpose,
|
|
70
|
-
including commercial applications, and to alter it and redistribute it
|
|
71
|
-
freely, subject to the following restrictions:
|
|
72
|
-
|
|
73
|
-
1. The origin of this software must not be misrepresented; you must not
|
|
74
|
-
claim that you wrote the original software. If you use this software
|
|
75
|
-
in a product, an acknowledgment in the product documentation would be
|
|
76
|
-
appreciated but is not required.
|
|
77
|
-
|
|
78
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
|
79
|
-
misrepresented as being the original software.
|
|
80
|
-
|
|
81
|
-
3. This notice may not be removed or altered from any source distribution.
|
data/css/offline.css
DELETED
data/css/orm2.css
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
a:link, a:visited {
|
|
2
|
-
color: #8A0092; text-decoration: underline;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
ul {
|
|
6
|
-
margin: 0px 0px 0px 2em;
|
|
7
|
-
-webkit-margin-before: 0px;
|
|
8
|
-
-webkit-margin-after: 0px;
|
|
9
|
-
-webkit-padding-start: 0px;
|
|
10
|
-
padding: 0px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
pre.slide {
|
|
14
|
-
background-color: #000;
|
|
15
|
-
padding: 5px;
|
|
16
|
-
display: table-cell;
|
|
17
|
-
border-style: dashed;
|
|
18
|
-
border-width: 2px;
|
|
19
|
-
border-color: #BBB;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
span {
|
|
23
|
-
font-family: "Frutiger", sans-serif;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.keyword {
|
|
27
|
-
color: #0000CC;
|
|
28
|
-
}
|
|
29
|
-
.term, .concept {
|
|
30
|
-
/* Xcolor: #6A0072; The color used by NORMA */
|
|
31
|
-
color: #8A0092;
|
|
32
|
-
}
|
|
33
|
-
.vocabulary, .object_type {
|
|
34
|
-
/* Xcolor: #6A0072; The color used by NORMA */
|
|
35
|
-
color: #8A0092;
|
|
36
|
-
}
|
|
37
|
-
.linking, .copula {
|
|
38
|
-
color: #0E5400;
|
|
39
|
-
}
|
|
40
|
-
.literal, .value {
|
|
41
|
-
color: #FF990E;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
dd {
|
|
45
|
-
margin-bottom: 0.5em;
|
|
46
|
-
margin-left: 60px;
|
|
47
|
-
text-indent: -20px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
dd ul {
|
|
51
|
-
margin-left: -80px;
|
|
52
|
-
text-indent: 80px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
.glossary-sidebar {
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: 0px;
|
|
59
|
-
bottom: 0px;
|
|
60
|
-
right: 0px;
|
|
61
|
-
width: 240px;
|
|
62
|
-
display: block;
|
|
63
|
-
margin: 0;
|
|
64
|
-
padding: 0 16px;
|
|
65
|
-
border-right: solid #DDD 3px;
|
|
66
|
-
background: #EEE;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.glossary-toc {
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: 0px;
|
|
72
|
-
bottom: 24px;
|
|
73
|
-
overflow: auto;
|
|
74
|
-
margin: 0;
|
|
75
|
-
padding: 0 0;
|
|
76
|
-
list-style: none;
|
|
77
|
-
font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.glossary-controls {
|
|
81
|
-
position: absolute; bottom: 0px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.glossary-doc {
|
|
85
|
-
position: absolute;
|
|
86
|
-
display: block;
|
|
87
|
-
background: #FFF;
|
|
88
|
-
border-right: solid #EEE 3px;
|
|
89
|
-
font: 300 16px/1.4 "Myriad Pro", "Helvetica Neue", Helvetica, "Arial Unicode MS", Arial, sans-serif;
|
|
90
|
-
overflow: auto;
|
|
91
|
-
padding: 0 0 0 30px;
|
|
92
|
-
top: 0px;
|
|
93
|
-
bottom: 0px;
|
|
94
|
-
left: 0px;
|
|
95
|
-
right: 270px;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.glossary-toc li {
|
|
99
|
-
margin-left: 20px;
|
|
100
|
-
text-indent: -20px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.glossary-doc dl {
|
|
104
|
-
margin-bottom: 1600px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.glossary-doc dd {
|
|
108
|
-
margin-bottom: 30px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.glossary-constraint {
|
|
112
|
-
background: #EDC;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.value {
|
|
116
|
-
display: inline;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.keyword,
|
|
120
|
-
.glossary-facttype,
|
|
121
|
-
.glossary-reading {
|
|
122
|
-
display: inline;
|
|
123
|
-
XXbackground: #E8E8E8;
|
|
124
|
-
}
|
data/css/print.css
DELETED
data/css/style-print.css
DELETED
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
body
|
|
2
|
-
{
|
|
3
|
-
color : #000000;
|
|
4
|
-
background-color : #FFFFFF;
|
|
5
|
-
line-height : 1.5em;
|
|
6
|
-
font-family : Calibri, Verdana, sans-serif;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/* emphasis */
|
|
10
|
-
|
|
11
|
-
em,
|
|
12
|
-
blockquote
|
|
13
|
-
{
|
|
14
|
-
font-family : Cambria, Georgia, serif;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* headings */
|
|
18
|
-
|
|
19
|
-
h1,
|
|
20
|
-
h2,
|
|
21
|
-
h3,
|
|
22
|
-
h4,
|
|
23
|
-
h5,
|
|
24
|
-
h6,
|
|
25
|
-
.title
|
|
26
|
-
{
|
|
27
|
-
font-weight : lighter;
|
|
28
|
-
font-family : Constantia, "Book Antiqua", "URW Bookman L", serif;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
#lof h1,
|
|
32
|
-
#lof h2,
|
|
33
|
-
#lof h3,
|
|
34
|
-
#lof h4,
|
|
35
|
-
#lof h5,
|
|
36
|
-
#lof h6
|
|
37
|
-
{
|
|
38
|
-
margin-top : 1.25em;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#content h1,
|
|
42
|
-
#content h2,
|
|
43
|
-
#content h3,
|
|
44
|
-
#content h4,
|
|
45
|
-
#content h5,
|
|
46
|
-
#content h6
|
|
47
|
-
{
|
|
48
|
-
margin-top : 2.5em;
|
|
49
|
-
line-height : 1.25em;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
#content h1
|
|
53
|
-
{
|
|
54
|
-
font-size : 2.0em;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
#content h2
|
|
58
|
-
{
|
|
59
|
-
font-size : 1.8em;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
#content h3
|
|
63
|
-
{
|
|
64
|
-
font-size : 1.6em;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
#content h4
|
|
68
|
-
{
|
|
69
|
-
font-size : 1.4em;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
#content h5
|
|
73
|
-
{
|
|
74
|
-
font-size : 1.2em;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
#content h6
|
|
78
|
-
{
|
|
79
|
-
font-size : 1.0em;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* tables */
|
|
83
|
-
|
|
84
|
-
table
|
|
85
|
-
{
|
|
86
|
-
border : none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
th,
|
|
90
|
-
td
|
|
91
|
-
{
|
|
92
|
-
padding : 1em;
|
|
93
|
-
border : 1px solid #C0C0C0;
|
|
94
|
-
vertical-align : top;
|
|
95
|
-
background-color : #FFFFFF;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
th
|
|
99
|
-
{
|
|
100
|
-
background-color : #F5F5F5;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
table
|
|
104
|
-
{
|
|
105
|
-
margin : auto;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* document structure */
|
|
109
|
-
|
|
110
|
-
#header
|
|
111
|
-
{
|
|
112
|
-
margin-bottom : 5em;
|
|
113
|
-
text-align : center;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
#abstract
|
|
117
|
-
{
|
|
118
|
-
margin-bottom : 5em;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
#toc li
|
|
122
|
-
{
|
|
123
|
-
list-style-type : none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
#toc li ul
|
|
127
|
-
{
|
|
128
|
-
padding-bottom : 1em;
|
|
129
|
-
border-left : thick solid #F5F5F5;
|
|
130
|
-
_border-left : none; /* for IE6 */
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
#toc li ul:hover
|
|
134
|
-
{
|
|
135
|
-
border-color : #DCDCDC;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
#toc > ul
|
|
139
|
-
{
|
|
140
|
-
padding-left : 1em;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
#references
|
|
144
|
-
{
|
|
145
|
-
margin-top : 5em;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
#footer
|
|
149
|
-
{
|
|
150
|
-
border-top : thick dotted #DCDCDC;
|
|
151
|
-
padding-top : 1em;
|
|
152
|
-
margin-top : 5em;
|
|
153
|
-
text-align : center;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/* document nodes */
|
|
157
|
-
|
|
158
|
-
.part > .title,
|
|
159
|
-
.chapter > .title
|
|
160
|
-
{
|
|
161
|
-
padding-bottom : 0.5em;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.part > .title > big,
|
|
165
|
-
.chapter > .title > big
|
|
166
|
-
{
|
|
167
|
-
display : block;
|
|
168
|
-
margin-top : 0.25em;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.part .title big,
|
|
172
|
-
.chapter .title big
|
|
173
|
-
{
|
|
174
|
-
_display : block; /* for IE6 */
|
|
175
|
-
_margin-top : 0.25em; /* for IE6 */
|
|
176
|
-
_margin-bottom : 0.75em; /* for IE6 */
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.paragraph > .title,
|
|
180
|
-
.tip > .title,
|
|
181
|
-
.note > .title,
|
|
182
|
-
.caution > .title,
|
|
183
|
-
.warning > .title,
|
|
184
|
-
.important > .title,
|
|
185
|
-
.figure > .title,
|
|
186
|
-
.table > .title,
|
|
187
|
-
.example > .title,
|
|
188
|
-
.equation > .title,
|
|
189
|
-
.procedure > .title
|
|
190
|
-
{
|
|
191
|
-
font-size : large;
|
|
192
|
-
margin-top : 2em;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.paragraph .title,
|
|
196
|
-
.tip .title,
|
|
197
|
-
.note .title,
|
|
198
|
-
.caution .title,
|
|
199
|
-
.warning .title,
|
|
200
|
-
.important .title,
|
|
201
|
-
.figure .title,
|
|
202
|
-
.table .title,
|
|
203
|
-
.example .title,
|
|
204
|
-
.equation .title,
|
|
205
|
-
.procedure .title
|
|
206
|
-
{
|
|
207
|
-
_font-size : large; /* for IE6 */
|
|
208
|
-
_font-weight : bold; /* large is not bold in IE6 */
|
|
209
|
-
_margin-top : 2em; /* for IE6 */
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.tip ,
|
|
213
|
-
.note ,
|
|
214
|
-
.caution ,
|
|
215
|
-
.warning ,
|
|
216
|
-
.important,
|
|
217
|
-
.figure ,
|
|
218
|
-
.table ,
|
|
219
|
-
.example ,
|
|
220
|
-
.equation ,
|
|
221
|
-
.procedure
|
|
222
|
-
{
|
|
223
|
-
margin : 3em;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.tip > .icon,
|
|
227
|
-
.note > .icon,
|
|
228
|
-
.caution > .icon,
|
|
229
|
-
.warning > .icon,
|
|
230
|
-
.important > .icon
|
|
231
|
-
{
|
|
232
|
-
float : left;
|
|
233
|
-
margin : 0 1em 1em 0; /* top right bottom left */
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.tip .icon,
|
|
237
|
-
.note .icon,
|
|
238
|
-
.caution .icon,
|
|
239
|
-
.warning .icon,
|
|
240
|
-
.important .icon
|
|
241
|
-
{
|
|
242
|
-
_display : none; /* IE6 cannot display embedded images */
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.figure > .title
|
|
246
|
-
{
|
|
247
|
-
text-align : center;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.figure .title
|
|
251
|
-
{
|
|
252
|
-
_text-align : center; /* for IE6 */
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.figure > .content > img
|
|
256
|
-
{
|
|
257
|
-
display : block;
|
|
258
|
-
margin : auto;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.figure .content img
|
|
262
|
-
{
|
|
263
|
-
_display : block; /* for IE6 */
|
|
264
|
-
_margin : auto; /* for IE6 */
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/* headings */
|
|
268
|
-
|
|
269
|
-
h1,
|
|
270
|
-
h2,
|
|
271
|
-
h3,
|
|
272
|
-
h4,
|
|
273
|
-
h5,
|
|
274
|
-
h6
|
|
275
|
-
{
|
|
276
|
-
font-weight : normal;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/* hyperlinks */
|
|
280
|
-
|
|
281
|
-
a:link,
|
|
282
|
-
a:visited,
|
|
283
|
-
a:active
|
|
284
|
-
{
|
|
285
|
-
color : #0000FF;
|
|
286
|
-
font-weight : bold;
|
|
287
|
-
text-decoration : underline;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
a:after
|
|
291
|
-
{
|
|
292
|
-
content : " (" attr(href) ")";
|
|
293
|
-
font-family : sans-serif;
|
|
294
|
-
font-weight : normal;
|
|
295
|
-
font-size : 90%;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
a[href^="#"]:after
|
|
299
|
-
{
|
|
300
|
-
content : "";
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
a[href^="#"]
|
|
304
|
-
{
|
|
305
|
-
color : #A52A2A;
|
|
306
|
-
font-weight : lighter;
|
|
307
|
-
text-decoration : none;
|
|
308
|
-
font-style : italic;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
a.toc:link,
|
|
312
|
-
a.toc:visited
|
|
313
|
-
{
|
|
314
|
-
color : inherit;
|
|
315
|
-
.color : #000000; /* for IE6 and IE7 */
|
|
316
|
-
font-weight : inherit;
|
|
317
|
-
text-decoration : none;
|
|
318
|
-
font-style : normal;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/* source code */
|
|
322
|
-
|
|
323
|
-
tt
|
|
324
|
-
{
|
|
325
|
-
color : inherit;
|
|
326
|
-
background-color : inherit;
|
|
327
|
-
font-weight : normal;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
pre,
|
|
331
|
-
.code
|
|
332
|
-
{
|
|
333
|
-
border : none;
|
|
334
|
-
overflow : visible;
|
|
335
|
-
background-color : inherit;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/* document structure */
|
|
339
|
-
|
|
340
|
-
#lof
|
|
341
|
-
{
|
|
342
|
-
display : none;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/* document nodes */
|
|
346
|
-
|
|
347
|
-
.part > .title > big,
|
|
348
|
-
.chapter > .title > big
|
|
349
|
-
{
|
|
350
|
-
padding-bottom : 0.5em;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.part .title big,
|
|
354
|
-
.chapter .title big
|
|
355
|
-
{
|
|
356
|
-
_padding-bottom : 0.5em; /* for IE6 */
|
|
357
|
-
}
|