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.
data/gisele-language.noespec
CHANGED
@@ -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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *70122675493300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
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: *
|
35
|
+
version_requirements: *70122675490320
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: citrus
|
38
|
-
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: *
|
46
|
+
version_requirements: *70122675489420
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: path
|
49
|
-
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: *
|
57
|
+
version_requirements: *70122675504360
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sexpr
|
60
|
-
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: *
|
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
|