gisele-language 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ variables:
7
7
  upper:
8
8
  Gisele::Language
9
9
  version:
10
- 0.5.0
10
+ 0.5.1
11
11
  summary: |-
12
12
  The Gisele Process Modeling Language
13
13
  description: |-
@@ -21,6 +21,7 @@ module Gisele
21
21
  end # module AST
22
22
  end # module Language
23
23
  end # module Gisele
24
+ require_relative 'task_def'
24
25
  require_relative 'task_call_st'
25
26
  require_relative 'while_st'
26
27
  require_relative 'if_st'
@@ -0,0 +1,14 @@
1
+ module Gisele
2
+ module Language
3
+ module AST
4
+ module TaskDef
5
+ include Node
6
+
7
+ def label
8
+ self[1].to_s
9
+ end
10
+
11
+ end # module TaskDef
12
+ end # module AST
13
+ end # module Language
14
+ end # module Gisele
@@ -4,7 +4,7 @@ module Gisele
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 5
7
- TINY = 0
7
+ TINY = 1
8
8
 
9
9
  def self.to_s
10
10
  [ MAJOR, MINOR, TINY ].join('.')
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+ module Gisele::Language
3
+ describe "the Sexp grammar", "trackvar_def" do
4
+
5
+ let(:g){ Gisele::Language }
6
+
7
+ it 'matches a trackvar with initial value' do
8
+ trackvar = [:trackvar_def, "name", [:event_set, "update"], [:event_set], true]
9
+ (sexp_grammar[:trackvar_def] === trackvar).should be_true
10
+ end
11
+
12
+ it 'matches a trackvar without initial value' do
13
+ trackvar = [:trackvar_def, "name", [:event_set, "update"], [:event_set], nil]
14
+ (sexp_grammar[:trackvar_def] === trackvar).should be_true
15
+ end
16
+
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gisele-language
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-20 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70221604271140 !ruby/object:Gem::Requirement
16
+ requirement: &70122675493300 !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: *70221604271140
24
+ version_requirements: *70122675493300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70221604269140 !ruby/object:Gem::Requirement
27
+ requirement: &70122675490320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.11'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70221604269140
35
+ version_requirements: *70122675490320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: citrus
38
- requirement: &70221604259500 !ruby/object:Gem::Requirement
38
+ requirement: &70122675489420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '2.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70221604259500
46
+ version_requirements: *70122675489420
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: path
49
- requirement: &70221604254500 !ruby/object:Gem::Requirement
49
+ requirement: &70122675504360 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.2'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70221604254500
57
+ version_requirements: *70122675504360
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sexpr
60
- requirement: &70221604238880 !ruby/object:Gem::Requirement
60
+ requirement: &70122675503200 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 0.5.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70221604238880
68
+ version_requirements: *70122675503200
69
69
  description: Provides the parser + compiler infrastructure for the Gisele process
70
70
  modeling language.
71
71
  email:
@@ -92,6 +92,7 @@ files:
92
92
  - lib/gisele/language/ast/if_st.rb
93
93
  - lib/gisele/language/ast/node.rb
94
94
  - lib/gisele/language/ast/task_call_st.rb
95
+ - lib/gisele/language/ast/task_def.rb
95
96
  - lib/gisele/language/ast/var_ref.rb
96
97
  - lib/gisele/language/ast/when_clause.rb
97
98
  - lib/gisele/language/ast/while_st.rb
@@ -143,6 +144,7 @@ files:
143
144
  - spec/language/grammar_sexp/test_fluent_def.rb
144
145
  - spec/language/grammar_sexp/test_initially.rb
145
146
  - spec/language/grammar_sexp/test_nop_st.rb
147
+ - spec/language/grammar_sexp/test_trackvar_def.rb
146
148
  - spec/language/grammar_sexp/test_when_clause.rb
147
149
  - spec/language/processors/test_elsif_flattener.rb
148
150
  - spec/language/processors/test_if_to_case.rb
@@ -201,6 +203,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
203
  - - ! '>='
202
204
  - !ruby/object:Gem::Version
203
205
  version: '0'
206
+ segments:
207
+ - 0
208
+ hash: 3372004850010771725
204
209
  required_rubygems_version: !ruby/object:Gem::Requirement
205
210
  none: false
206
211
  requirements:
@@ -223,6 +228,7 @@ test_files:
223
228
  - spec/language/grammar_sexp/test_fluent_def.rb
224
229
  - spec/language/grammar_sexp/test_initially.rb
225
230
  - spec/language/grammar_sexp/test_nop_st.rb
231
+ - spec/language/grammar_sexp/test_trackvar_def.rb
226
232
  - spec/language/grammar_sexp/test_when_clause.rb
227
233
  - spec/language/processors/test_elsif_flattener.rb
228
234
  - spec/language/processors/test_if_to_case.rb