carbon-compiler 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitattributes +17 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.rubocop.yml +39 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +9 -0
- data/Vagrantfile +84 -0
- data/carbon-compiler.gemspec +28 -0
- data/lib/carbon/compiler.rb +20 -0
- data/lib/carbon/compiler/directive.rb +48 -0
- data/lib/carbon/compiler/directive/import.rb +17 -0
- data/lib/carbon/compiler/errors.rb +7 -0
- data/lib/carbon/compiler/location.rb +136 -0
- data/lib/carbon/compiler/metanostic.rb +123 -0
- data/lib/carbon/compiler/metanostic/defaults.rb +41 -0
- data/lib/carbon/compiler/metanostic/defaults.yml +138 -0
- data/lib/carbon/compiler/metanostic/diagnostic.rb +112 -0
- data/lib/carbon/compiler/metanostic/list.rb +109 -0
- data/lib/carbon/compiler/metanostic/mode.rb +162 -0
- data/lib/carbon/compiler/metanostic/state.rb +174 -0
- data/lib/carbon/compiler/metanostic/template.erb +11 -0
- data/lib/carbon/compiler/node.rb +18 -0
- data/lib/carbon/compiler/node/base.rb +213 -0
- data/lib/carbon/compiler/node/definition.rb +19 -0
- data/lib/carbon/compiler/node/definition/class.rb +24 -0
- data/lib/carbon/compiler/node/definition/class/element.rb +18 -0
- data/lib/carbon/compiler/node/definition/directive.rb +22 -0
- data/lib/carbon/compiler/node/definition/directive/function.rb +18 -0
- data/lib/carbon/compiler/node/definition/enum.rb +20 -0
- data/lib/carbon/compiler/node/definition/enum/element.rb +17 -0
- data/lib/carbon/compiler/node/definition/function.rb +44 -0
- data/lib/carbon/compiler/node/definition/function/body.rb +17 -0
- data/lib/carbon/compiler/node/definition/function/name.rb +18 -0
- data/lib/carbon/compiler/node/definition/function/parameter.rb +18 -0
- data/lib/carbon/compiler/node/definition/function/parameters.rb +17 -0
- data/lib/carbon/compiler/node/definition/module.rb +23 -0
- data/lib/carbon/compiler/node/definition/struct.rb +24 -0
- data/lib/carbon/compiler/node/definition/struct/element.rb +18 -0
- data/lib/carbon/compiler/node/etype.rb +66 -0
- data/lib/carbon/compiler/node/etype/option.rb +25 -0
- data/lib/carbon/compiler/node/etype/star.rb +13 -0
- data/lib/carbon/compiler/node/expression.rb +18 -0
- data/lib/carbon/compiler/node/expression/assignment.rb +22 -0
- data/lib/carbon/compiler/node/expression/call.rb +22 -0
- data/lib/carbon/compiler/node/expression/call/access.rb +24 -0
- data/lib/carbon/compiler/node/expression/call/attribute.rb +23 -0
- data/lib/carbon/compiler/node/expression/call/enum.rb +25 -0
- data/lib/carbon/compiler/node/expression/call/module.rb +24 -0
- data/lib/carbon/compiler/node/expression/call/parameters.rb +17 -0
- data/lib/carbon/compiler/node/expression/call/self.rb +17 -0
- data/lib/carbon/compiler/node/expression/call/unified.rb +27 -0
- data/lib/carbon/compiler/node/expression/literal.rb +83 -0
- data/lib/carbon/compiler/node/expression/operation.rb +20 -0
- data/lib/carbon/compiler/node/expression/operation/and.rb +20 -0
- data/lib/carbon/compiler/node/expression/operation/neq.rb +21 -0
- data/lib/carbon/compiler/node/expression/operation/normal.rb +20 -0
- data/lib/carbon/compiler/node/expression/operation/or.rb +20 -0
- data/lib/carbon/compiler/node/expression/unit.rb +16 -0
- data/lib/carbon/compiler/node/name.rb +27 -0
- data/lib/carbon/compiler/node/root.rb +23 -0
- data/lib/carbon/compiler/node/statement.rb +24 -0
- data/lib/carbon/compiler/node/statement/catch.rb +20 -0
- data/lib/carbon/compiler/node/statement/condition.rb +14 -0
- data/lib/carbon/compiler/node/statement/else.rb +17 -0
- data/lib/carbon/compiler/node/statement/elsif.rb +18 -0
- data/lib/carbon/compiler/node/statement/finally.rb +17 -0
- data/lib/carbon/compiler/node/statement/for.rb +18 -0
- data/lib/carbon/compiler/node/statement/if.rb +18 -0
- data/lib/carbon/compiler/node/statement/let.rb +18 -0
- data/lib/carbon/compiler/node/statement/match.rb +14 -0
- data/lib/carbon/compiler/node/statement/return.rb +17 -0
- data/lib/carbon/compiler/node/statement/try.rb +19 -0
- data/lib/carbon/compiler/node/statement/while.rb +19 -0
- data/lib/carbon/compiler/parser.rb +63 -0
- data/lib/carbon/compiler/parser/common.rb +79 -0
- data/lib/carbon/compiler/parser/expressions.rb +39 -0
- data/lib/carbon/compiler/parser/expressions/precedence.rb +134 -0
- data/lib/carbon/compiler/parser/expressions/primary.rb +120 -0
- data/lib/carbon/compiler/parser/firsts.rb +74 -0
- data/lib/carbon/compiler/parser/helpers.rb +61 -0
- data/lib/carbon/compiler/parser/root.rb +57 -0
- data/lib/carbon/compiler/parser/root/class.rb +34 -0
- data/lib/carbon/compiler/parser/root/directive.rb +87 -0
- data/lib/carbon/compiler/parser/root/enum.rb +45 -0
- data/lib/carbon/compiler/parser/root/function.rb +90 -0
- data/lib/carbon/compiler/parser/root/struct.rb +34 -0
- data/lib/carbon/compiler/parser/root/trait.rb +44 -0
- data/lib/carbon/compiler/parser/statements.rb +86 -0
- data/lib/carbon/compiler/parser/statements/if.rb +50 -0
- data/lib/carbon/compiler/parser/statements/match.rb +39 -0
- data/lib/carbon/compiler/parser/statements/try.rb +49 -0
- data/lib/carbon/compiler/project.rb +37 -0
- data/lib/carbon/compiler/project/file.rb +64 -0
- data/lib/carbon/compiler/scanner.rb +82 -0
- data/lib/carbon/compiler/scanner/main.rb +76 -0
- data/lib/carbon/compiler/scanner/token.rb +58 -0
- data/lib/carbon/compiler/version.rb +8 -0
- data/lib/carbon/compiler/visitor.rb +13 -0
- data/lib/carbon/compiler/visitor/base.rb +52 -0
- data/lib/carbon/compiler/visitor/generation.rb +45 -0
- data/lib/carbon/compiler/visitor/generation/asserts.rb +30 -0
- data/lib/carbon/compiler/visitor/generation/class.rb +93 -0
- data/lib/carbon/compiler/visitor/generation/context.rb +75 -0
- data/lib/carbon/compiler/visitor/generation/expressions.rb +82 -0
- data/lib/carbon/compiler/visitor/generation/expressions/assignment.rb +105 -0
- data/lib/carbon/compiler/visitor/generation/expressions/calls.rb +89 -0
- data/lib/carbon/compiler/visitor/generation/function.rb +68 -0
- data/lib/carbon/compiler/visitor/generation/statements.rb +131 -0
- data/lib/carbon/compiler/visitor/generation/struct.rb +115 -0
- data/lib/carbon/compiler/visitor/preparation.rb +86 -0
- data/lib/carbon/compiler/visitor/preparation/expressions.rb +26 -0
- data/lib/carbon/compiler/visitor/preparation/function.rb +55 -0
- data/lib/carbon/compiler/visitor/preparation/statements.rb +73 -0
- data/lib/carbon/compiler/visitor/preparation/struct.rb +37 -0
- data/program.ca +16 -0
- data/test.rb +21 -0
- metadata +234 -0
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Carbon
|
5
|
+
module Compiler
|
6
|
+
module Visitor
|
7
|
+
class Preparation
|
8
|
+
module Statements
|
9
|
+
Preparation.on Node::Statement::Return => :visit_ignore
|
10
|
+
|
11
|
+
Preparation.on Node::Statement::If => :visit_statement_if
|
12
|
+
Preparation.on Node::Statement::ElsIf => :visit_statement_if
|
13
|
+
def visit_statement_if(node)
|
14
|
+
@context = :if
|
15
|
+
condition = accept(node.condition)
|
16
|
+
@context = :normal
|
17
|
+
|
18
|
+
node.update(condition: condition, body: accept(node.body),
|
19
|
+
follow: accept(node.follow))
|
20
|
+
end
|
21
|
+
|
22
|
+
Preparation.on Node::Statement::Else => :visit_statement_else
|
23
|
+
def visit_statement_else(node)
|
24
|
+
node.update(body: accept(node.body))
|
25
|
+
end
|
26
|
+
|
27
|
+
Preparation.on Node::Statement::Catch => :visit_statement_catch
|
28
|
+
def visit_statement_catch(node)
|
29
|
+
visit_statement_body_follow(node)
|
30
|
+
end
|
31
|
+
|
32
|
+
Preparation.on Node::Statement::Try => :visit_statement_body_follow
|
33
|
+
def visit_statement_body_follow(node)
|
34
|
+
node.merge(body: accept(node.body), follow: accept(node.follow))
|
35
|
+
end
|
36
|
+
|
37
|
+
Preparation.on Node::Statement::While => :visit_statement_while
|
38
|
+
def visit_statement_while(node)
|
39
|
+
@context = :while
|
40
|
+
expr = accept(node.condition)
|
41
|
+
@context = :normal
|
42
|
+
|
43
|
+
node.update(condition: expr, body: accept(node.body))
|
44
|
+
end
|
45
|
+
|
46
|
+
Preparation.on Node::Statement::For => :visit_statement_for
|
47
|
+
def visit_statement_for(node)
|
48
|
+
@context = :"for:init"
|
49
|
+
initial = accept(node.initial)
|
50
|
+
@context = :"for:cond"
|
51
|
+
condition = accept(node.condition)
|
52
|
+
@context = :"for:incr"
|
53
|
+
increment = accept(node.increment)
|
54
|
+
@context = :normal
|
55
|
+
|
56
|
+
node.update(initial: initial, condition: condition,
|
57
|
+
increment: increment, body: accept(node.body))
|
58
|
+
end
|
59
|
+
|
60
|
+
Preparation.on Node::Statement::Finally => :visit_statement_body
|
61
|
+
def visit_statement_body(node)
|
62
|
+
node.merge(body: accept(node.body))
|
63
|
+
end
|
64
|
+
|
65
|
+
Preparation.on Node::Statement::Let => :visit_statement_let
|
66
|
+
def visit_statement_let(node)
|
67
|
+
node.merge(type: accept(node.type))
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Carbon
|
5
|
+
module Compiler
|
6
|
+
module Visitor
|
7
|
+
class Preparation
|
8
|
+
module Struct
|
9
|
+
Preparation.on Node::Definition::Struct => :visit_struct
|
10
|
+
def visit_struct(node)
|
11
|
+
error_multiple_data(node) if @_data
|
12
|
+
@_data = node
|
13
|
+
names = {}
|
14
|
+
node.attributes!([directives_pop]).map! { |c| accept(c, names) }
|
15
|
+
end
|
16
|
+
|
17
|
+
Preparation.on Node::Definition::Struct::Element =>
|
18
|
+
:visit_struct_element
|
19
|
+
def visit_struct_element(node, names)
|
20
|
+
name = node.name.value
|
21
|
+
error_struct_duplicate(node, name, names) if names.key?(name)
|
22
|
+
names[name] = node
|
23
|
+
type = accept(node.type)
|
24
|
+
node.merge(type: type)
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def error_struct_duplicate(node, name, names)
|
30
|
+
@file.emit("Struct/Definition/Duplicate", node.location, [name])
|
31
|
+
@file.emit("Trace/Location", names[name].location)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/program.ca
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
:import Carbon::{Int32, Int8}.
|
2
|
+
|
3
|
+
struct do
|
4
|
+
name: Int32;
|
5
|
+
value: Int8;
|
6
|
+
end
|
7
|
+
|
8
|
+
def alloc<T>(): Carbon::Pointer<T> do
|
9
|
+
return Carbon::Pointer<T>.alloc(1);
|
10
|
+
end
|
11
|
+
|
12
|
+
def main(): Carbon::Int32 do
|
13
|
+
let ptr: Program; # = Program.alloc<Carbon::Int8>();
|
14
|
+
ptr.value = 32i8;
|
15
|
+
return ptr.value.to-int32();
|
16
|
+
end
|
data/test.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
lib = File.expand_path("../lib", __FILE__)
|
5
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
+
require "ruby-prof"
|
7
|
+
require "pry"
|
8
|
+
require "pry-byebug"
|
9
|
+
require "pry-rescue"
|
10
|
+
require "carbon"
|
11
|
+
require "carbon/compiler"
|
12
|
+
|
13
|
+
Carbon.verbose += 1
|
14
|
+
Pry.rescue do
|
15
|
+
project = Carbon::Compiler::Project.new(["program.ca"], ".")
|
16
|
+
index = project.call
|
17
|
+
main = Carbon::Type("Program.main()")
|
18
|
+
build = Carbon::Concrete::Build.new(index.build(main), index)
|
19
|
+
build.call
|
20
|
+
puts build.module
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,234 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: carbon-compiler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeremy Rodi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: carbon-core
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rainbow
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.1'
|
83
|
+
description: ''
|
84
|
+
email:
|
85
|
+
- me@medcat.me
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitattributes"
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- ".rubocop.yml"
|
94
|
+
- ".travis.yml"
|
95
|
+
- CODE_OF_CONDUCT.md
|
96
|
+
- Gemfile
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- Vagrantfile
|
101
|
+
- carbon-compiler.gemspec
|
102
|
+
- lib/carbon/compiler.rb
|
103
|
+
- lib/carbon/compiler/directive.rb
|
104
|
+
- lib/carbon/compiler/directive/import.rb
|
105
|
+
- lib/carbon/compiler/errors.rb
|
106
|
+
- lib/carbon/compiler/location.rb
|
107
|
+
- lib/carbon/compiler/metanostic.rb
|
108
|
+
- lib/carbon/compiler/metanostic/defaults.rb
|
109
|
+
- lib/carbon/compiler/metanostic/defaults.yml
|
110
|
+
- lib/carbon/compiler/metanostic/diagnostic.rb
|
111
|
+
- lib/carbon/compiler/metanostic/list.rb
|
112
|
+
- lib/carbon/compiler/metanostic/mode.rb
|
113
|
+
- lib/carbon/compiler/metanostic/state.rb
|
114
|
+
- lib/carbon/compiler/metanostic/template.erb
|
115
|
+
- lib/carbon/compiler/node.rb
|
116
|
+
- lib/carbon/compiler/node/base.rb
|
117
|
+
- lib/carbon/compiler/node/definition.rb
|
118
|
+
- lib/carbon/compiler/node/definition/class.rb
|
119
|
+
- lib/carbon/compiler/node/definition/class/element.rb
|
120
|
+
- lib/carbon/compiler/node/definition/directive.rb
|
121
|
+
- lib/carbon/compiler/node/definition/directive/function.rb
|
122
|
+
- lib/carbon/compiler/node/definition/enum.rb
|
123
|
+
- lib/carbon/compiler/node/definition/enum/element.rb
|
124
|
+
- lib/carbon/compiler/node/definition/function.rb
|
125
|
+
- lib/carbon/compiler/node/definition/function/body.rb
|
126
|
+
- lib/carbon/compiler/node/definition/function/name.rb
|
127
|
+
- lib/carbon/compiler/node/definition/function/parameter.rb
|
128
|
+
- lib/carbon/compiler/node/definition/function/parameters.rb
|
129
|
+
- lib/carbon/compiler/node/definition/module.rb
|
130
|
+
- lib/carbon/compiler/node/definition/struct.rb
|
131
|
+
- lib/carbon/compiler/node/definition/struct/element.rb
|
132
|
+
- lib/carbon/compiler/node/etype.rb
|
133
|
+
- lib/carbon/compiler/node/etype/option.rb
|
134
|
+
- lib/carbon/compiler/node/etype/star.rb
|
135
|
+
- lib/carbon/compiler/node/expression.rb
|
136
|
+
- lib/carbon/compiler/node/expression/assignment.rb
|
137
|
+
- lib/carbon/compiler/node/expression/call.rb
|
138
|
+
- lib/carbon/compiler/node/expression/call/access.rb
|
139
|
+
- lib/carbon/compiler/node/expression/call/attribute.rb
|
140
|
+
- lib/carbon/compiler/node/expression/call/enum.rb
|
141
|
+
- lib/carbon/compiler/node/expression/call/module.rb
|
142
|
+
- lib/carbon/compiler/node/expression/call/parameters.rb
|
143
|
+
- lib/carbon/compiler/node/expression/call/self.rb
|
144
|
+
- lib/carbon/compiler/node/expression/call/unified.rb
|
145
|
+
- lib/carbon/compiler/node/expression/literal.rb
|
146
|
+
- lib/carbon/compiler/node/expression/operation.rb
|
147
|
+
- lib/carbon/compiler/node/expression/operation/and.rb
|
148
|
+
- lib/carbon/compiler/node/expression/operation/neq.rb
|
149
|
+
- lib/carbon/compiler/node/expression/operation/normal.rb
|
150
|
+
- lib/carbon/compiler/node/expression/operation/or.rb
|
151
|
+
- lib/carbon/compiler/node/expression/unit.rb
|
152
|
+
- lib/carbon/compiler/node/name.rb
|
153
|
+
- lib/carbon/compiler/node/root.rb
|
154
|
+
- lib/carbon/compiler/node/statement.rb
|
155
|
+
- lib/carbon/compiler/node/statement/catch.rb
|
156
|
+
- lib/carbon/compiler/node/statement/condition.rb
|
157
|
+
- lib/carbon/compiler/node/statement/else.rb
|
158
|
+
- lib/carbon/compiler/node/statement/elsif.rb
|
159
|
+
- lib/carbon/compiler/node/statement/finally.rb
|
160
|
+
- lib/carbon/compiler/node/statement/for.rb
|
161
|
+
- lib/carbon/compiler/node/statement/if.rb
|
162
|
+
- lib/carbon/compiler/node/statement/let.rb
|
163
|
+
- lib/carbon/compiler/node/statement/match.rb
|
164
|
+
- lib/carbon/compiler/node/statement/return.rb
|
165
|
+
- lib/carbon/compiler/node/statement/try.rb
|
166
|
+
- lib/carbon/compiler/node/statement/while.rb
|
167
|
+
- lib/carbon/compiler/parser.rb
|
168
|
+
- lib/carbon/compiler/parser/common.rb
|
169
|
+
- lib/carbon/compiler/parser/expressions.rb
|
170
|
+
- lib/carbon/compiler/parser/expressions/precedence.rb
|
171
|
+
- lib/carbon/compiler/parser/expressions/primary.rb
|
172
|
+
- lib/carbon/compiler/parser/firsts.rb
|
173
|
+
- lib/carbon/compiler/parser/helpers.rb
|
174
|
+
- lib/carbon/compiler/parser/root.rb
|
175
|
+
- lib/carbon/compiler/parser/root/class.rb
|
176
|
+
- lib/carbon/compiler/parser/root/directive.rb
|
177
|
+
- lib/carbon/compiler/parser/root/enum.rb
|
178
|
+
- lib/carbon/compiler/parser/root/function.rb
|
179
|
+
- lib/carbon/compiler/parser/root/struct.rb
|
180
|
+
- lib/carbon/compiler/parser/root/trait.rb
|
181
|
+
- lib/carbon/compiler/parser/statements.rb
|
182
|
+
- lib/carbon/compiler/parser/statements/if.rb
|
183
|
+
- lib/carbon/compiler/parser/statements/match.rb
|
184
|
+
- lib/carbon/compiler/parser/statements/try.rb
|
185
|
+
- lib/carbon/compiler/project.rb
|
186
|
+
- lib/carbon/compiler/project/file.rb
|
187
|
+
- lib/carbon/compiler/scanner.rb
|
188
|
+
- lib/carbon/compiler/scanner/main.rb
|
189
|
+
- lib/carbon/compiler/scanner/token.rb
|
190
|
+
- lib/carbon/compiler/version.rb
|
191
|
+
- lib/carbon/compiler/visitor.rb
|
192
|
+
- lib/carbon/compiler/visitor/base.rb
|
193
|
+
- lib/carbon/compiler/visitor/generation.rb
|
194
|
+
- lib/carbon/compiler/visitor/generation/asserts.rb
|
195
|
+
- lib/carbon/compiler/visitor/generation/class.rb
|
196
|
+
- lib/carbon/compiler/visitor/generation/context.rb
|
197
|
+
- lib/carbon/compiler/visitor/generation/expressions.rb
|
198
|
+
- lib/carbon/compiler/visitor/generation/expressions/assignment.rb
|
199
|
+
- lib/carbon/compiler/visitor/generation/expressions/calls.rb
|
200
|
+
- lib/carbon/compiler/visitor/generation/function.rb
|
201
|
+
- lib/carbon/compiler/visitor/generation/statements.rb
|
202
|
+
- lib/carbon/compiler/visitor/generation/struct.rb
|
203
|
+
- lib/carbon/compiler/visitor/preparation.rb
|
204
|
+
- lib/carbon/compiler/visitor/preparation/expressions.rb
|
205
|
+
- lib/carbon/compiler/visitor/preparation/function.rb
|
206
|
+
- lib/carbon/compiler/visitor/preparation/statements.rb
|
207
|
+
- lib/carbon/compiler/visitor/preparation/struct.rb
|
208
|
+
- program.ca
|
209
|
+
- test.rb
|
210
|
+
homepage: https://github.com/carbon-lang/compiler
|
211
|
+
licenses:
|
212
|
+
- MIT
|
213
|
+
metadata: {}
|
214
|
+
post_install_message:
|
215
|
+
rdoc_options: []
|
216
|
+
require_paths:
|
217
|
+
- lib
|
218
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - ">="
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: '0'
|
228
|
+
requirements: []
|
229
|
+
rubyforge_project:
|
230
|
+
rubygems_version: 2.5.1
|
231
|
+
signing_key:
|
232
|
+
specification_version: 4
|
233
|
+
summary: ''
|
234
|
+
test_files: []
|