gisele 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/CHANGELOG.md +16 -1
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +2 -0
  4. data/gisele.gemspec +1 -0
  5. data/gisele.noespec +2 -1
  6. data/lib/gisele/command.rb +21 -6
  7. data/lib/gisele/language/ast/bool_and.rb +14 -0
  8. data/lib/gisele/language/ast/bool_expr.rb +14 -0
  9. data/lib/gisele/language/ast/bool_not.rb +14 -0
  10. data/lib/gisele/language/ast/bool_or.rb +14 -0
  11. data/lib/gisele/language/ast/elsif_clause.rb +14 -0
  12. data/lib/gisele/language/ast/helpers.rb +15 -9
  13. data/lib/gisele/language/ast/if_st.rb +14 -0
  14. data/lib/gisele/language/ast/node.rb +39 -3
  15. data/lib/gisele/language/ast/task_call_st.rb +14 -0
  16. data/lib/gisele/language/ast/var_ref.rb +14 -0
  17. data/lib/gisele/language/ast/when_clause.rb +14 -0
  18. data/lib/gisele/language/ast/while_st.rb +14 -0
  19. data/lib/gisele/language/ast.rb +2 -2
  20. data/lib/gisele/language/dot.yml +19 -0
  21. data/lib/gisele/language/sugar_removal.rb +30 -9
  22. data/lib/gisele/language/syntax/bool_expr.rb +14 -0
  23. data/lib/gisele/language/syntax/bool_lit.rb +1 -1
  24. data/lib/gisele/language/syntax/grammar.citrus +4 -3
  25. data/lib/gisele/language/syntax/node.rb +2 -1
  26. data/lib/gisele/language/to_graph.rb +119 -0
  27. data/lib/gisele/language.rb +4 -1
  28. data/lib/gisele/loader.rb +1 -0
  29. data/lib/gisele/version.rb +1 -1
  30. data/spec/command/main/gisele_ast_ruby.stdout +6 -3
  31. data/spec/command/main/gisele_graph.cmd +1 -0
  32. data/spec/command/main/gisele_graph.stdout +30 -0
  33. data/spec/command/main/gisele_help.stdout +10 -5
  34. data/spec/command/main/gisele_no_sugar.stdout +11 -5
  35. data/spec/command/main/gisele_version.stdout +1 -1
  36. data/spec/fixtures/tasks/complete.gis +18 -0
  37. data/spec/fixtures/tasks/simple.ast +57 -19
  38. data/spec/spec_helper.rb +8 -0
  39. data/spec/unit/language/ast/test_node.rb +22 -0
  40. data/spec/unit/language/sugar_removal/test_if_to_guarded_commands.rb +32 -12
  41. data/spec/unit/language/syntax/test_to_ast.rb +23 -11
  42. data/spec/unit/language/test_syntax.rb +5 -0
  43. data/spec/unit/language/test_to_graph.rb +10 -0
  44. metadata +50 -18
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gisele
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70134950121580 !ruby/object:Gem::Requirement
16
+ requirement: &70117322338900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70134950121580
24
+ version_requirements: *70117322338900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70134950028240 !ruby/object:Gem::Requirement
27
+ requirement: &70117322337820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70134950028240
35
+ version_requirements: *70117322337820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70134950027180 !ruby/object:Gem::Requirement
38
+ requirement: &70117322336600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.8.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70134950027180
46
+ version_requirements: *70117322336600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: wlang
49
- requirement: &70134950026340 !ruby/object:Gem::Requirement
49
+ requirement: &70117322335740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.10.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70134950026340
57
+ version_requirements: *70117322335740
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: citrus
60
- requirement: &70134950025360 !ruby/object:Gem::Requirement
60
+ requirement: &70117322334980 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '2.4'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70134950025360
68
+ version_requirements: *70117322334980
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: epath
71
- requirement: &70134950024560 !ruby/object:Gem::Requirement
71
+ requirement: &70117322334140 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.0.1
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70134950024560
79
+ version_requirements: *70117322334140
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: quickl
82
- requirement: &70134950023760 !ruby/object:Gem::Requirement
82
+ requirement: &70117322333000 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.4.3
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70134950023760
90
+ version_requirements: *70117322333000
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: awesome_print
93
- requirement: &70134950022720 !ruby/object:Gem::Requirement
93
+ requirement: &70117322332300 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,18 @@ dependencies:
98
98
  version: '1.0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70134950022720
101
+ version_requirements: *70117322332300
102
+ - !ruby/object:Gem::Dependency
103
+ name: yargi
104
+ requirement: &70117322331460 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.2.0
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *70117322331460
102
113
  description: ! 'This is a fresh-new implementation of the process analysis techniques
103
114
 
104
115
  developed in the Gisele and PIPAS research projects at UCLouvain'
@@ -121,12 +132,24 @@ files:
121
132
  - examples/meeting-scheduler/MeetingScheduling.gis
122
133
  - lib/gisele/command.rb
123
134
  - lib/gisele/errors.rb
135
+ - lib/gisele/language/ast/bool_and.rb
136
+ - lib/gisele/language/ast/bool_expr.rb
137
+ - lib/gisele/language/ast/bool_not.rb
138
+ - lib/gisele/language/ast/bool_or.rb
139
+ - lib/gisele/language/ast/elsif_clause.rb
124
140
  - lib/gisele/language/ast/helpers.rb
141
+ - lib/gisele/language/ast/if_st.rb
125
142
  - lib/gisele/language/ast/node.rb
143
+ - lib/gisele/language/ast/task_call_st.rb
126
144
  - lib/gisele/language/ast/unit.rb
145
+ - lib/gisele/language/ast/var_ref.rb
146
+ - lib/gisele/language/ast/when_clause.rb
147
+ - lib/gisele/language/ast/while_st.rb
127
148
  - lib/gisele/language/ast.rb
149
+ - lib/gisele/language/dot.yml
128
150
  - lib/gisele/language/sugar_removal.rb
129
151
  - lib/gisele/language/syntax/bool_and.rb
152
+ - lib/gisele/language/syntax/bool_expr.rb
130
153
  - lib/gisele/language/syntax/bool_lit.rb
131
154
  - lib/gisele/language/syntax/bool_not.rb
132
155
  - lib/gisele/language/syntax/bool_or.rb
@@ -151,6 +174,7 @@ files:
151
174
  - lib/gisele/language/syntax/var_ref.rb
152
175
  - lib/gisele/language/syntax/while_st.rb
153
176
  - lib/gisele/language/syntax.rb
177
+ - lib/gisele/language/to_graph.rb
154
178
  - lib/gisele/language/transformer.rb
155
179
  - lib/gisele/language.rb
156
180
  - lib/gisele/loader.rb
@@ -162,6 +186,8 @@ files:
162
186
  - README.md
163
187
  - spec/command/main/gisele_ast_ruby.cmd
164
188
  - spec/command/main/gisele_ast_ruby.stdout
189
+ - spec/command/main/gisele_graph.cmd
190
+ - spec/command/main/gisele_graph.stdout
165
191
  - spec/command/main/gisele_help.cmd
166
192
  - spec/command/main/gisele_help.stdout
167
193
  - spec/command/main/gisele_no_sugar.cmd
@@ -169,6 +195,7 @@ files:
169
195
  - spec/command/main/gisele_version.cmd
170
196
  - spec/command/main/gisele_version.stdout
171
197
  - spec/command/test_command.rb
198
+ - spec/fixtures/tasks/complete.gis
172
199
  - spec/fixtures/tasks/simple.ast
173
200
  - spec/fixtures/tasks/simple.gis
174
201
  - spec/spec_helper.rb
@@ -179,6 +206,7 @@ files:
179
206
  - spec/unit/language/syntax/test_to_ast.rb
180
207
  - spec/unit/language/test_ast.rb
181
208
  - spec/unit/language/test_syntax.rb
209
+ - spec/unit/language/test_to_graph.rb
182
210
  - spec/unit/language/test_transformer.rb
183
211
  - spec/unit/test_gisele.rb
184
212
  - spec/unit/test_language.rb
@@ -202,7 +230,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
230
  version: '0'
203
231
  segments:
204
232
  - 0
205
- hash: -2777835670012084504
233
+ hash: -521904661763835024
206
234
  required_rubygems_version: !ruby/object:Gem::Requirement
207
235
  none: false
208
236
  requirements:
@@ -218,6 +246,8 @@ summary: Gisele is a Process Analyzer Toolset
218
246
  test_files:
219
247
  - spec/command/main/gisele_ast_ruby.cmd
220
248
  - spec/command/main/gisele_ast_ruby.stdout
249
+ - spec/command/main/gisele_graph.cmd
250
+ - spec/command/main/gisele_graph.stdout
221
251
  - spec/command/main/gisele_help.cmd
222
252
  - spec/command/main/gisele_help.stdout
223
253
  - spec/command/main/gisele_no_sugar.cmd
@@ -225,6 +255,7 @@ test_files:
225
255
  - spec/command/main/gisele_version.cmd
226
256
  - spec/command/main/gisele_version.stdout
227
257
  - spec/command/test_command.rb
258
+ - spec/fixtures/tasks/complete.gis
228
259
  - spec/fixtures/tasks/simple.ast
229
260
  - spec/fixtures/tasks/simple.gis
230
261
  - spec/spec_helper.rb
@@ -235,6 +266,7 @@ test_files:
235
266
  - spec/unit/language/syntax/test_to_ast.rb
236
267
  - spec/unit/language/test_ast.rb
237
268
  - spec/unit/language/test_syntax.rb
269
+ - spec/unit/language/test_to_graph.rb
238
270
  - spec/unit/language/test_transformer.rb
239
271
  - spec/unit/test_gisele.rb
240
272
  - spec/unit/test_language.rb