|
36 | 36 | multitask :default => [:test, :stdlib_test, :typecheck_test, :rubocop, :validate, :test_doc] |
37 | 37 |
|
38 | 38 | task :lexer do |
39 | | - sh "re2c -W --no-generation-date -o ext/rbs_extension/lexer.c ext/rbs_extension/lexer.re" |
| 39 | + sh "re2c -W --no-generation-date -o src/lexer.c src/lexer.re" |
40 | 40 | end |
41 | 41 |
|
42 | 42 | task :confirm_lexer => :lexer do |
43 | 43 | puts "Testing if lexer.c is updated with respect to lexer.re" |
44 | | - sh "git diff --exit-code ext/rbs_extension/lexer.c" |
| 44 | + sh "git diff --exit-code src/lexer.c" |
45 | 45 | end |
46 | 46 |
|
47 | 47 | task :confirm_templates => :templates do |
@@ -70,17 +70,19 @@ task :confirm_annotation do |
70 | 70 | end |
71 | 71 |
|
72 | 72 | task :templates do |
73 | | - sh "#{ruby} templates/template.rb include/rbs/constants.h" |
74 | | - sh "#{ruby} templates/template.rb include/rbs/ruby_objs.h" |
75 | | - sh "#{ruby} templates/template.rb src/constants.c" |
76 | | - sh "#{ruby} templates/template.rb src/ruby_objs.c" |
| 73 | + sh "#{ruby} templates/template.rb ext/rbs_extension/ast_translation.h" |
| 74 | + sh "#{ruby} templates/template.rb ext/rbs_extension/ast_translation.c" |
| 75 | + |
| 76 | + sh "#{ruby} templates/template.rb ext/rbs_extension/class_constants.h" |
| 77 | + sh "#{ruby} templates/template.rb ext/rbs_extension/class_constants.c" |
| 78 | + |
| 79 | + sh "#{ruby} templates/template.rb include/rbs/ast.h" |
| 80 | + sh "#{ruby} templates/template.rb src/ast.c" |
77 | 81 | end |
78 | 82 |
|
79 | | -task :compile => "ext/rbs_extension/lexer.c" |
80 | | -task :compile => "include/rbs/constants.h" |
81 | | -task :compile => "include/rbs/ruby_objs.h" |
82 | | -task :compile => "src/constants.c" |
83 | | -task :compile => "src/ruby_objs.c" |
| 83 | +task :compile => "ext/rbs_extension/class_constants.h" |
| 84 | +task :compile => "ext/rbs_extension/class_constants.c" |
| 85 | +task :compile => "src/lexer.c" |
84 | 86 |
|
85 | 87 | task :test_doc do |
86 | 88 | files = Dir.chdir(File.expand_path('..', __FILE__)) do |
|
0 commit comments