gisele-language 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +26 -0
  4. data/LICENCE.md +22 -0
  5. data/Manifest.txt +13 -0
  6. data/README.md +7 -0
  7. data/Rakefile +11 -0
  8. data/gisele-language.gemspec +188 -0
  9. data/gisele-language.noespec +24 -0
  10. data/lib/gisele/language/ast/bool_and.rb +14 -0
  11. data/lib/gisele/language/ast/bool_expr.rb +22 -0
  12. data/lib/gisele/language/ast/bool_not.rb +14 -0
  13. data/lib/gisele/language/ast/bool_or.rb +14 -0
  14. data/lib/gisele/language/ast/case_st.rb +14 -0
  15. data/lib/gisele/language/ast/else_clause.rb +14 -0
  16. data/lib/gisele/language/ast/elsif_clause.rb +14 -0
  17. data/lib/gisele/language/ast/if_st.rb +14 -0
  18. data/lib/gisele/language/ast/node.rb +35 -0
  19. data/lib/gisele/language/ast/task_call_st.rb +14 -0
  20. data/lib/gisele/language/ast/var_ref.rb +14 -0
  21. data/lib/gisele/language/ast/when_clause.rb +14 -0
  22. data/lib/gisele/language/ast/while_st.rb +14 -0
  23. data/lib/gisele/language/grammar.citrus +236 -0
  24. data/lib/gisele/language/grammar.sexp.yml +83 -0
  25. data/lib/gisele/language/processors/elsif_flattener.rb +36 -0
  26. data/lib/gisele/language/processors/if_to_case.rb +65 -0
  27. data/lib/gisele/language/processors/scoping_helper.rb +32 -0
  28. data/lib/gisele/language/processors/sugar_removal.rb +17 -0
  29. data/lib/gisele/language/processors.rb +4 -0
  30. data/lib/gisele/language/syntax/bool_and.rb +14 -0
  31. data/lib/gisele/language/syntax/bool_expr.rb +14 -0
  32. data/lib/gisele/language/syntax/bool_lit.rb +14 -0
  33. data/lib/gisele/language/syntax/bool_not.rb +14 -0
  34. data/lib/gisele/language/syntax/bool_or.rb +14 -0
  35. data/lib/gisele/language/syntax/bool_paren.rb +14 -0
  36. data/lib/gisele/language/syntax/case_st.rb +19 -0
  37. data/lib/gisele/language/syntax/else_clause.rb +14 -0
  38. data/lib/gisele/language/syntax/elsif_clause.rb +16 -0
  39. data/lib/gisele/language/syntax/event_set.rb +15 -0
  40. data/lib/gisele/language/syntax/fluent_def.rb +18 -0
  41. data/lib/gisele/language/syntax/if_st.rb +18 -0
  42. data/lib/gisele/language/syntax/implicit_seq_st.rb +16 -0
  43. data/lib/gisele/language/syntax/node.rb +40 -0
  44. data/lib/gisele/language/syntax/par_st.rb +14 -0
  45. data/lib/gisele/language/syntax/seq_st.rb +14 -0
  46. data/lib/gisele/language/syntax/st_list.rb +14 -0
  47. data/lib/gisele/language/syntax/task_call_st.rb +14 -0
  48. data/lib/gisele/language/syntax/task_def.rb +18 -0
  49. data/lib/gisele/language/syntax/trackvar_def.rb +19 -0
  50. data/lib/gisele/language/syntax/unit_def.rb +14 -0
  51. data/lib/gisele/language/syntax/var_ref.rb +14 -0
  52. data/lib/gisele/language/syntax/when_clause.rb +16 -0
  53. data/lib/gisele/language/syntax/while_st.rb +16 -0
  54. data/lib/gisele/language.rb +31 -0
  55. data/lib/gisele-language/loader.rb +3 -0
  56. data/lib/gisele-language/version.rb +16 -0
  57. data/lib/gisele-language.rb +19 -0
  58. data/spec/fixtures/tasks/complete.gis +40 -0
  59. data/spec/fixtures/tasks/simple.ast +51 -0
  60. data/spec/fixtures/tasks/simple.gis +16 -0
  61. data/spec/language/ast/test_bool_expr.rb +50 -0
  62. data/spec/language/grammar_sexp/test_case_st.rb +20 -0
  63. data/spec/language/grammar_sexp/test_event_set.rb +14 -0
  64. data/spec/language/grammar_sexp/test_fluent_def.rb +18 -0
  65. data/spec/language/grammar_sexp/test_initially.rb +18 -0
  66. data/spec/language/grammar_sexp/test_nop_st.rb +10 -0
  67. data/spec/language/grammar_sexp/test_when_clause.rb +12 -0
  68. data/spec/language/processors/test_elsif_flattener.rb +94 -0
  69. data/spec/language/processors/test_if_to_case.rb +105 -0
  70. data/spec/language/processors/test_scoping_helper.rb +45 -0
  71. data/spec/language/syntax/grammar/test_bool_expr.rb +34 -0
  72. data/spec/language/syntax/grammar/test_boolean_literal.rb +17 -0
  73. data/spec/language/syntax/grammar/test_case_st.rb +60 -0
  74. data/spec/language/syntax/grammar/test_event.rb +18 -0
  75. data/spec/language/syntax/grammar/test_event_name.rb +21 -0
  76. data/spec/language/syntax/grammar/test_event_set.rb +26 -0
  77. data/spec/language/syntax/grammar/test_fluent_def.rb +21 -0
  78. data/spec/language/syntax/grammar/test_if_st.rb +21 -0
  79. data/spec/language/syntax/grammar/test_par_st.rb +11 -0
  80. data/spec/language/syntax/grammar/test_process_statement.rb +19 -0
  81. data/spec/language/syntax/grammar/test_seq_st.rb +11 -0
  82. data/spec/language/syntax/grammar/test_spaces.rb +19 -0
  83. data/spec/language/syntax/grammar/test_spacing.rb +17 -0
  84. data/spec/language/syntax/grammar/test_task_def.rb +35 -0
  85. data/spec/language/syntax/grammar/test_task_name.rb +19 -0
  86. data/spec/language/syntax/grammar/test_task_start_or_end.rb +17 -0
  87. data/spec/language/syntax/grammar/test_trackvar_def.rb +21 -0
  88. data/spec/language/syntax/grammar/test_unit_def.rb +29 -0
  89. data/spec/language/syntax/grammar/test_variable_name.rb +51 -0
  90. data/spec/language/syntax/grammar/test_when_clause.rb +21 -0
  91. data/spec/language/syntax/grammar/test_while_st.rb +11 -0
  92. data/spec/language/syntax/to_ast/test_bool_expr.rb +32 -0
  93. data/spec/language/syntax/to_ast/test_case_st.rb +47 -0
  94. data/spec/language/syntax/to_ast/test_else_clause.rb +13 -0
  95. data/spec/language/syntax/to_ast/test_elsif_clause.rb +15 -0
  96. data/spec/language/syntax/to_ast/test_event_set.rb +24 -0
  97. data/spec/language/syntax/to_ast/test_fluent_def.rb +26 -0
  98. data/spec/language/syntax/to_ast/test_if_st.rb +39 -0
  99. data/spec/language/syntax/to_ast/test_par_st.rb +12 -0
  100. data/spec/language/syntax/to_ast/test_seq_st.rb +12 -0
  101. data/spec/language/syntax/to_ast/test_task_call_st.rb +10 -0
  102. data/spec/language/syntax/to_ast/test_task_def.rb +44 -0
  103. data/spec/language/syntax/to_ast/test_trackvar_def.rb +26 -0
  104. data/spec/language/syntax/to_ast/test_unit_def.rb +28 -0
  105. data/spec/language/syntax/to_ast/test_var_ref.rb +12 -0
  106. data/spec/language/syntax/to_ast/test_when_clause.rb +15 -0
  107. data/spec/language/syntax/to_ast/test_while_st.rb +24 -0
  108. data/spec/language/test_syntax.rb +51 -0
  109. data/spec/spec_helper.rb +44 -0
  110. data/spec/test_gisele-language.rb +8 -0
  111. data/tasks/gem.rake +73 -0
  112. data/tasks/spec_test.rake +71 -0
  113. metadata +269 -0
metadata ADDED
@@ -0,0 +1,269 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gisele-language
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Bernard Lambeau
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &70221604271140 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.9.2
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70221604271140
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70221604269140 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '2.11'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70221604269140
36
+ - !ruby/object:Gem::Dependency
37
+ name: citrus
38
+ requirement: &70221604259500 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '2.4'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70221604259500
47
+ - !ruby/object:Gem::Dependency
48
+ name: path
49
+ requirement: &70221604254500 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.2'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70221604254500
58
+ - !ruby/object:Gem::Dependency
59
+ name: sexpr
60
+ requirement: &70221604238880 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: 0.5.0
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *70221604238880
69
+ description: Provides the parser + compiler infrastructure for the Gisele process
70
+ modeling language.
71
+ email:
72
+ - blambeau@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files:
76
+ - README.md
77
+ - CHANGELOG.md
78
+ - LICENCE.md
79
+ files:
80
+ - gisele-language.gemspec
81
+ - gisele-language.noespec
82
+ - CHANGELOG.md
83
+ - Gemfile
84
+ - Gemfile.lock
85
+ - lib/gisele/language/ast/bool_and.rb
86
+ - lib/gisele/language/ast/bool_expr.rb
87
+ - lib/gisele/language/ast/bool_not.rb
88
+ - lib/gisele/language/ast/bool_or.rb
89
+ - lib/gisele/language/ast/case_st.rb
90
+ - lib/gisele/language/ast/else_clause.rb
91
+ - lib/gisele/language/ast/elsif_clause.rb
92
+ - lib/gisele/language/ast/if_st.rb
93
+ - lib/gisele/language/ast/node.rb
94
+ - lib/gisele/language/ast/task_call_st.rb
95
+ - lib/gisele/language/ast/var_ref.rb
96
+ - lib/gisele/language/ast/when_clause.rb
97
+ - lib/gisele/language/ast/while_st.rb
98
+ - lib/gisele/language/grammar.citrus
99
+ - lib/gisele/language/grammar.sexp.yml
100
+ - lib/gisele/language/processors/elsif_flattener.rb
101
+ - lib/gisele/language/processors/if_to_case.rb
102
+ - lib/gisele/language/processors/scoping_helper.rb
103
+ - lib/gisele/language/processors/sugar_removal.rb
104
+ - lib/gisele/language/processors.rb
105
+ - lib/gisele/language/syntax/bool_and.rb
106
+ - lib/gisele/language/syntax/bool_expr.rb
107
+ - lib/gisele/language/syntax/bool_lit.rb
108
+ - lib/gisele/language/syntax/bool_not.rb
109
+ - lib/gisele/language/syntax/bool_or.rb
110
+ - lib/gisele/language/syntax/bool_paren.rb
111
+ - lib/gisele/language/syntax/case_st.rb
112
+ - lib/gisele/language/syntax/else_clause.rb
113
+ - lib/gisele/language/syntax/elsif_clause.rb
114
+ - lib/gisele/language/syntax/event_set.rb
115
+ - lib/gisele/language/syntax/fluent_def.rb
116
+ - lib/gisele/language/syntax/if_st.rb
117
+ - lib/gisele/language/syntax/implicit_seq_st.rb
118
+ - lib/gisele/language/syntax/node.rb
119
+ - lib/gisele/language/syntax/par_st.rb
120
+ - lib/gisele/language/syntax/seq_st.rb
121
+ - lib/gisele/language/syntax/st_list.rb
122
+ - lib/gisele/language/syntax/task_call_st.rb
123
+ - lib/gisele/language/syntax/task_def.rb
124
+ - lib/gisele/language/syntax/trackvar_def.rb
125
+ - lib/gisele/language/syntax/unit_def.rb
126
+ - lib/gisele/language/syntax/var_ref.rb
127
+ - lib/gisele/language/syntax/when_clause.rb
128
+ - lib/gisele/language/syntax/while_st.rb
129
+ - lib/gisele/language.rb
130
+ - lib/gisele-language/loader.rb
131
+ - lib/gisele-language/version.rb
132
+ - lib/gisele-language.rb
133
+ - LICENCE.md
134
+ - Manifest.txt
135
+ - Rakefile
136
+ - README.md
137
+ - spec/fixtures/tasks/complete.gis
138
+ - spec/fixtures/tasks/simple.ast
139
+ - spec/fixtures/tasks/simple.gis
140
+ - spec/language/ast/test_bool_expr.rb
141
+ - spec/language/grammar_sexp/test_case_st.rb
142
+ - spec/language/grammar_sexp/test_event_set.rb
143
+ - spec/language/grammar_sexp/test_fluent_def.rb
144
+ - spec/language/grammar_sexp/test_initially.rb
145
+ - spec/language/grammar_sexp/test_nop_st.rb
146
+ - spec/language/grammar_sexp/test_when_clause.rb
147
+ - spec/language/processors/test_elsif_flattener.rb
148
+ - spec/language/processors/test_if_to_case.rb
149
+ - spec/language/processors/test_scoping_helper.rb
150
+ - spec/language/syntax/grammar/test_bool_expr.rb
151
+ - spec/language/syntax/grammar/test_boolean_literal.rb
152
+ - spec/language/syntax/grammar/test_case_st.rb
153
+ - spec/language/syntax/grammar/test_event.rb
154
+ - spec/language/syntax/grammar/test_event_name.rb
155
+ - spec/language/syntax/grammar/test_event_set.rb
156
+ - spec/language/syntax/grammar/test_fluent_def.rb
157
+ - spec/language/syntax/grammar/test_if_st.rb
158
+ - spec/language/syntax/grammar/test_par_st.rb
159
+ - spec/language/syntax/grammar/test_process_statement.rb
160
+ - spec/language/syntax/grammar/test_seq_st.rb
161
+ - spec/language/syntax/grammar/test_spaces.rb
162
+ - spec/language/syntax/grammar/test_spacing.rb
163
+ - spec/language/syntax/grammar/test_task_def.rb
164
+ - spec/language/syntax/grammar/test_task_name.rb
165
+ - spec/language/syntax/grammar/test_task_start_or_end.rb
166
+ - spec/language/syntax/grammar/test_trackvar_def.rb
167
+ - spec/language/syntax/grammar/test_unit_def.rb
168
+ - spec/language/syntax/grammar/test_variable_name.rb
169
+ - spec/language/syntax/grammar/test_when_clause.rb
170
+ - spec/language/syntax/grammar/test_while_st.rb
171
+ - spec/language/syntax/to_ast/test_bool_expr.rb
172
+ - spec/language/syntax/to_ast/test_case_st.rb
173
+ - spec/language/syntax/to_ast/test_else_clause.rb
174
+ - spec/language/syntax/to_ast/test_elsif_clause.rb
175
+ - spec/language/syntax/to_ast/test_event_set.rb
176
+ - spec/language/syntax/to_ast/test_fluent_def.rb
177
+ - spec/language/syntax/to_ast/test_if_st.rb
178
+ - spec/language/syntax/to_ast/test_par_st.rb
179
+ - spec/language/syntax/to_ast/test_seq_st.rb
180
+ - spec/language/syntax/to_ast/test_task_call_st.rb
181
+ - spec/language/syntax/to_ast/test_task_def.rb
182
+ - spec/language/syntax/to_ast/test_trackvar_def.rb
183
+ - spec/language/syntax/to_ast/test_unit_def.rb
184
+ - spec/language/syntax/to_ast/test_var_ref.rb
185
+ - spec/language/syntax/to_ast/test_when_clause.rb
186
+ - spec/language/syntax/to_ast/test_while_st.rb
187
+ - spec/language/test_syntax.rb
188
+ - spec/spec_helper.rb
189
+ - spec/test_gisele-language.rb
190
+ - tasks/gem.rake
191
+ - tasks/spec_test.rake
192
+ homepage: https://github.com/blambeau/gisele-language
193
+ licenses: []
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ none: false
200
+ requirements:
201
+ - - ! '>='
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ required_rubygems_version: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ requirements: []
211
+ rubyforge_project:
212
+ rubygems_version: 1.8.15
213
+ signing_key:
214
+ specification_version: 3
215
+ summary: The Gisele Process Modeling Language
216
+ test_files:
217
+ - spec/fixtures/tasks/complete.gis
218
+ - spec/fixtures/tasks/simple.ast
219
+ - spec/fixtures/tasks/simple.gis
220
+ - spec/language/ast/test_bool_expr.rb
221
+ - spec/language/grammar_sexp/test_case_st.rb
222
+ - spec/language/grammar_sexp/test_event_set.rb
223
+ - spec/language/grammar_sexp/test_fluent_def.rb
224
+ - spec/language/grammar_sexp/test_initially.rb
225
+ - spec/language/grammar_sexp/test_nop_st.rb
226
+ - spec/language/grammar_sexp/test_when_clause.rb
227
+ - spec/language/processors/test_elsif_flattener.rb
228
+ - spec/language/processors/test_if_to_case.rb
229
+ - spec/language/processors/test_scoping_helper.rb
230
+ - spec/language/syntax/grammar/test_bool_expr.rb
231
+ - spec/language/syntax/grammar/test_boolean_literal.rb
232
+ - spec/language/syntax/grammar/test_case_st.rb
233
+ - spec/language/syntax/grammar/test_event.rb
234
+ - spec/language/syntax/grammar/test_event_name.rb
235
+ - spec/language/syntax/grammar/test_event_set.rb
236
+ - spec/language/syntax/grammar/test_fluent_def.rb
237
+ - spec/language/syntax/grammar/test_if_st.rb
238
+ - spec/language/syntax/grammar/test_par_st.rb
239
+ - spec/language/syntax/grammar/test_process_statement.rb
240
+ - spec/language/syntax/grammar/test_seq_st.rb
241
+ - spec/language/syntax/grammar/test_spaces.rb
242
+ - spec/language/syntax/grammar/test_spacing.rb
243
+ - spec/language/syntax/grammar/test_task_def.rb
244
+ - spec/language/syntax/grammar/test_task_name.rb
245
+ - spec/language/syntax/grammar/test_task_start_or_end.rb
246
+ - spec/language/syntax/grammar/test_trackvar_def.rb
247
+ - spec/language/syntax/grammar/test_unit_def.rb
248
+ - spec/language/syntax/grammar/test_variable_name.rb
249
+ - spec/language/syntax/grammar/test_when_clause.rb
250
+ - spec/language/syntax/grammar/test_while_st.rb
251
+ - spec/language/syntax/to_ast/test_bool_expr.rb
252
+ - spec/language/syntax/to_ast/test_case_st.rb
253
+ - spec/language/syntax/to_ast/test_else_clause.rb
254
+ - spec/language/syntax/to_ast/test_elsif_clause.rb
255
+ - spec/language/syntax/to_ast/test_event_set.rb
256
+ - spec/language/syntax/to_ast/test_fluent_def.rb
257
+ - spec/language/syntax/to_ast/test_if_st.rb
258
+ - spec/language/syntax/to_ast/test_par_st.rb
259
+ - spec/language/syntax/to_ast/test_seq_st.rb
260
+ - spec/language/syntax/to_ast/test_task_call_st.rb
261
+ - spec/language/syntax/to_ast/test_task_def.rb
262
+ - spec/language/syntax/to_ast/test_trackvar_def.rb
263
+ - spec/language/syntax/to_ast/test_unit_def.rb
264
+ - spec/language/syntax/to_ast/test_var_ref.rb
265
+ - spec/language/syntax/to_ast/test_when_clause.rb
266
+ - spec/language/syntax/to_ast/test_while_st.rb
267
+ - spec/language/test_syntax.rb
268
+ - spec/spec_helper.rb
269
+ - spec/test_gisele-language.rb