rubex 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +50 -0
- data/CONTRIBUTING.md +0 -0
- data/Gemfile +2 -0
- data/HISTORY.md +0 -0
- data/LICENSE +23 -0
- data/README.md +343 -0
- data/Rakefile +18 -0
- data/bin/rubex +10 -0
- data/lib/rubex.rb +56 -0
- data/lib/rubex/ast.rb +6 -0
- data/lib/rubex/ast/argument_list.rb +20 -0
- data/lib/rubex/ast/c_base_type.rb +11 -0
- data/lib/rubex/ast/expression.rb +13 -0
- data/lib/rubex/ast/node.rb +71 -0
- data/lib/rubex/ast/ruby_method_def.rb +84 -0
- data/lib/rubex/ast/statement.rb +54 -0
- data/lib/rubex/code_writer.rb +67 -0
- data/lib/rubex/constants.rb +17 -0
- data/lib/rubex/data_type.rb +15 -0
- data/lib/rubex/lexer.rex +50 -0
- data/lib/rubex/lexer.rex.rb +129 -0
- data/lib/rubex/parser.racc +67 -0
- data/lib/rubex/parser.racc.rb +251 -0
- data/lib/rubex/symbol_table.rb +2 -0
- data/lib/rubex/symbol_table/entry.rb +16 -0
- data/lib/rubex/symbol_table/scope.rb +57 -0
- data/lib/rubex/version.rb +3 -0
- data/rubex.gemspec +30 -0
- data/spec/basic_ruby_method_spec.rb +40 -0
- data/spec/fixtures/basic_ruby_method/Makefile +260 -0
- data/spec/fixtures/basic_ruby_method/basic.rb +3 -0
- data/spec/fixtures/basic_ruby_method/basic_ruby_method.c +16 -0
- data/spec/fixtures/basic_ruby_method/basic_ruby_method.o +0 -0
- data/spec/fixtures/basic_ruby_method/basic_ruby_method.rubex +3 -0
- data/spec/fixtures/basic_ruby_method/basic_ruby_method.so +0 -0
- data/spec/fixtures/basic_ruby_method/extconf.rb +3 -0
- data/spec/spec_helper.rb +7 -0
- metadata +163 -0
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubex
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sameer Deshmukh
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: oedipus_lex
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.4'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: racc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.4.14
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.4.14
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '11.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '11.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: awesome_print
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: |
|
84
|
+
A Crystal-inspired language for writing Ruby extensions
|
85
|
+
email:
|
86
|
+
- sameer.deshmukh93@gmail.com
|
87
|
+
executables:
|
88
|
+
- rubex
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".gitignore"
|
93
|
+
- CONTRIBUTING.md
|
94
|
+
- Gemfile
|
95
|
+
- HISTORY.md
|
96
|
+
- LICENSE
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- bin/rubex
|
100
|
+
- lib/rubex.rb
|
101
|
+
- lib/rubex/ast.rb
|
102
|
+
- lib/rubex/ast/argument_list.rb
|
103
|
+
- lib/rubex/ast/c_base_type.rb
|
104
|
+
- lib/rubex/ast/expression.rb
|
105
|
+
- lib/rubex/ast/node.rb
|
106
|
+
- lib/rubex/ast/ruby_method_def.rb
|
107
|
+
- lib/rubex/ast/statement.rb
|
108
|
+
- lib/rubex/code_writer.rb
|
109
|
+
- lib/rubex/constants.rb
|
110
|
+
- lib/rubex/data_type.rb
|
111
|
+
- lib/rubex/lexer.rex
|
112
|
+
- lib/rubex/lexer.rex.rb
|
113
|
+
- lib/rubex/parser.racc
|
114
|
+
- lib/rubex/parser.racc.rb
|
115
|
+
- lib/rubex/symbol_table.rb
|
116
|
+
- lib/rubex/symbol_table/entry.rb
|
117
|
+
- lib/rubex/symbol_table/scope.rb
|
118
|
+
- lib/rubex/version.rb
|
119
|
+
- rubex.gemspec
|
120
|
+
- spec/basic_ruby_method_spec.rb
|
121
|
+
- spec/fixtures/basic_ruby_method/Makefile
|
122
|
+
- spec/fixtures/basic_ruby_method/basic.rb
|
123
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.c
|
124
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.o
|
125
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.rubex
|
126
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.so
|
127
|
+
- spec/fixtures/basic_ruby_method/extconf.rb
|
128
|
+
- spec/spec_helper.rb
|
129
|
+
homepage: http://github.com/v0dro/rubex
|
130
|
+
licenses:
|
131
|
+
- BSD-2
|
132
|
+
metadata: {}
|
133
|
+
post_install_message:
|
134
|
+
rdoc_options: []
|
135
|
+
require_paths:
|
136
|
+
- lib
|
137
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
requirements: []
|
148
|
+
rubyforge_project:
|
149
|
+
rubygems_version: 2.4.6
|
150
|
+
signing_key:
|
151
|
+
specification_version: 4
|
152
|
+
summary: A Crystal-inspired language for writing Ruby extensions
|
153
|
+
test_files:
|
154
|
+
- spec/basic_ruby_method_spec.rb
|
155
|
+
- spec/fixtures/basic_ruby_method/Makefile
|
156
|
+
- spec/fixtures/basic_ruby_method/basic.rb
|
157
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.c
|
158
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.o
|
159
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.rubex
|
160
|
+
- spec/fixtures/basic_ruby_method/basic_ruby_method.so
|
161
|
+
- spec/fixtures/basic_ruby_method/extconf.rb
|
162
|
+
- spec/spec_helper.rb
|
163
|
+
has_rdoc:
|