rtext 0.8.0 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +113 -84
- data/Project.yaml +14 -0
- data/RText_Protocol +47 -4
- data/lib/rtext/context_builder.rb +49 -8
- data/lib/rtext/default_completer.rb +212 -163
- data/lib/rtext/default_service_provider.rb +3 -3
- data/lib/rtext/frontend/connector.rb +122 -55
- data/lib/rtext/frontend/context.rb +12 -12
- data/lib/rtext/instantiator.rb +11 -3
- data/lib/rtext/language.rb +5 -5
- data/lib/rtext/serializer.rb +1 -1
- data/lib/rtext/service.rb +264 -253
- data/lib/rtext/tokenizer.rb +1 -1
- metadata +18 -43
- data/Rakefile +0 -46
- data/test/completer_test.rb +0 -606
- data/test/context_builder_test.rb +0 -948
- data/test/frontend/context_test.rb +0 -205
- data/test/instantiator_test.rb +0 -1691
- data/test/integration/backend.out +0 -13
- data/test/integration/crash_on_request_editor.rb +0 -12
- data/test/integration/ecore_editor.rb +0 -50
- data/test/integration/frontend.log +0 -36049
- data/test/integration/model/invalid_encoding.invenc +0 -2
- data/test/integration/model/test.crash_on_request +0 -18
- data/test/integration/model/test.crashing_backend +0 -18
- data/test/integration/model/test.dont_open_socket +0 -0
- data/test/integration/model/test.invalid_cmd_line +0 -0
- data/test/integration/model/test.not_in_rtext +0 -0
- data/test/integration/model/test_large_with_errors.ect3 +0 -43523
- data/test/integration/model/test_metamodel.ect +0 -24
- data/test/integration/model/test_metamodel2.ect +0 -5
- data/test/integration/model/test_metamodel_error.ect2 +0 -3
- data/test/integration/model/test_metamodel_ok.ect2 +0 -18
- data/test/integration/test.rb +0 -918
- data/test/link_detector_test.rb +0 -287
- data/test/message_helper_test.rb +0 -118
- data/test/rtext_test.rb +0 -11
- data/test/serializer_test.rb +0 -1004
- data/test/tokenizer_test.rb +0 -173
data/lib/rtext/tokenizer.rb
CHANGED
@@ -77,7 +77,7 @@ module Tokenizer
|
|
77
77
|
str = $'
|
78
78
|
result << Token.new(:boolean, $& == "true", idx, col, col+$&.size-1)
|
79
79
|
col += $&.size
|
80
|
-
when /\A([a-zA-Z_]\w*)\b
|
80
|
+
when /\A([a-zA-Z_]\w*)\b:?/
|
81
81
|
str = $'
|
82
82
|
if $&[-1] == ?:
|
83
83
|
result << Token.new(:label, $1, idx, col, col+$&.size-1)
|
metadata
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Thiede
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rgen
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.8.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.8.0
|
27
27
|
description: RText can be used to derive textual languages from an RGen metamodel
|
28
28
|
with very little effort.
|
29
|
-
email:
|
29
|
+
email:
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files:
|
@@ -36,6 +36,12 @@ extra_rdoc_files:
|
|
36
36
|
- RText_Users_Guide
|
37
37
|
- RText_Protocol
|
38
38
|
files:
|
39
|
+
- CHANGELOG
|
40
|
+
- MIT-LICENSE
|
41
|
+
- Project.yaml
|
42
|
+
- README.rdoc
|
43
|
+
- RText_Protocol
|
44
|
+
- RText_Users_Guide
|
39
45
|
- lib/rtext/context_builder.rb
|
40
46
|
- lib/rtext/default_completer.rb
|
41
47
|
- lib/rtext/default_loader.rb
|
@@ -55,61 +61,30 @@ files:
|
|
55
61
|
- lib/rtext/serializer.rb
|
56
62
|
- lib/rtext/service.rb
|
57
63
|
- lib/rtext/tokenizer.rb
|
58
|
-
- test/completer_test.rb
|
59
|
-
- test/context_builder_test.rb
|
60
|
-
- test/frontend/context_test.rb
|
61
|
-
- test/instantiator_test.rb
|
62
|
-
- test/integration/backend.out
|
63
|
-
- test/integration/crash_on_request_editor.rb
|
64
|
-
- test/integration/ecore_editor.rb
|
65
|
-
- test/integration/frontend.log
|
66
|
-
- test/integration/model/invalid_encoding.invenc
|
67
|
-
- test/integration/model/test.crash_on_request
|
68
|
-
- test/integration/model/test.crashing_backend
|
69
|
-
- test/integration/model/test.dont_open_socket
|
70
|
-
- test/integration/model/test.invalid_cmd_line
|
71
|
-
- test/integration/model/test.not_in_rtext
|
72
|
-
- test/integration/model/test_large_with_errors.ect3
|
73
|
-
- test/integration/model/test_metamodel.ect
|
74
|
-
- test/integration/model/test_metamodel2.ect
|
75
|
-
- test/integration/model/test_metamodel_error.ect2
|
76
|
-
- test/integration/model/test_metamodel_ok.ect2
|
77
|
-
- test/integration/test.rb
|
78
|
-
- test/link_detector_test.rb
|
79
|
-
- test/message_helper_test.rb
|
80
|
-
- test/rtext_test.rb
|
81
|
-
- test/serializer_test.rb
|
82
|
-
- test/tokenizer_test.rb
|
83
|
-
- README.rdoc
|
84
|
-
- CHANGELOG
|
85
|
-
- MIT-LICENSE
|
86
|
-
- RText_Users_Guide
|
87
|
-
- RText_Protocol
|
88
|
-
- Rakefile
|
89
64
|
homepage: http://ruby-gen.org
|
90
65
|
licenses: []
|
91
66
|
metadata: {}
|
92
67
|
post_install_message:
|
93
68
|
rdoc_options:
|
94
|
-
- --main
|
69
|
+
- "--main"
|
95
70
|
- README.rdoc
|
96
|
-
- -x
|
71
|
+
- "-x"
|
97
72
|
- test
|
98
73
|
require_paths:
|
99
74
|
- lib
|
100
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
76
|
requirements:
|
102
|
-
- -
|
77
|
+
- - ">="
|
103
78
|
- !ruby/object:Gem::Version
|
104
79
|
version: '0'
|
105
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
81
|
requirements:
|
107
|
-
- -
|
82
|
+
- - ">="
|
108
83
|
- !ruby/object:Gem::Version
|
109
84
|
version: '0'
|
110
85
|
requirements: []
|
111
86
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.5.2
|
113
88
|
signing_key:
|
114
89
|
specification_version: 4
|
115
90
|
summary: Ruby Textual Modelling
|
data/Rakefile
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
require 'rubygems/package_task'
|
2
|
-
require 'rdoc/task'
|
3
|
-
|
4
|
-
DocFiles = [
|
5
|
-
"README.rdoc", "CHANGELOG", "MIT-LICENSE",
|
6
|
-
"RText_Users_Guide",
|
7
|
-
"RText_Protocol"]
|
8
|
-
|
9
|
-
RTextGemSpec = Gem::Specification.new do |s|
|
10
|
-
s.name = %q{rtext}
|
11
|
-
s.version = "0.8.0"
|
12
|
-
s.date = Time.now.strftime("%Y-%m-%d")
|
13
|
-
s.summary = %q{Ruby Textual Modelling}
|
14
|
-
s.email = %q{martin dot thiede at gmx de}
|
15
|
-
s.homepage = %q{http://ruby-gen.org}
|
16
|
-
s.description = %q{RText can be used to derive textual languages from an RGen metamodel with very little effort.}
|
17
|
-
s.authors = ["Martin Thiede"]
|
18
|
-
s.add_dependency('rgen', '>= 0.6.1')
|
19
|
-
gemfiles = Rake::FileList.new
|
20
|
-
gemfiles.include("{lib,test}/**/*")
|
21
|
-
gemfiles.include(DocFiles)
|
22
|
-
gemfiles.include("Rakefile")
|
23
|
-
gemfiles.exclude(/\b\.bak\b/)
|
24
|
-
s.files = gemfiles
|
25
|
-
s.rdoc_options = ["--main", "README.rdoc", "-x", "test"]
|
26
|
-
s.extra_rdoc_files = DocFiles
|
27
|
-
end
|
28
|
-
|
29
|
-
RDoc::Task.new do |rd|
|
30
|
-
rd.main = "README.rdoc"
|
31
|
-
rd.rdoc_files.include(DocFiles)
|
32
|
-
rd.rdoc_files.include("lib/**/*.rb")
|
33
|
-
rd.rdoc_dir = "doc"
|
34
|
-
end
|
35
|
-
|
36
|
-
RTextPackageTask = Gem::PackageTask.new(RTextGemSpec) do |p|
|
37
|
-
p.need_zip = false
|
38
|
-
end
|
39
|
-
|
40
|
-
task :prepare_package_rdoc => :rdoc do
|
41
|
-
RTextPackageTask.package_files.include("doc/**/*")
|
42
|
-
end
|
43
|
-
|
44
|
-
task :release => [:prepare_package_rdoc, :package]
|
45
|
-
|
46
|
-
task :clobber => [:clobber_rdoc, :clobber_package]
|