-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile.rb
More file actions
29 lines (26 loc) · 763 Bytes
/
rakefile.rb
File metadata and controls
29 lines (26 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!ruby
# coding: utf-8
#
# Rakefile
#
# Created by Erik Österlund on 1/14/10.
# Copyright 2010 Växjö Universitet. All rights reserved.
#
desc "Default task generates the interpretor"
task :default => [:generate]
desc "Generate the interpretor and cache the grammar"
task :generate
file "generate" => [] do
puts "generating"
exec "ruby1.9 objj_js_generator.rb"
end
desc "Clean away the cached tables and the interpretor"
task :clean
file "clean" => [] do
puts "cleaning"
`rm objj_js.js` if File.exists? "objj_js.js"
`rm objj_js_single.js` if File.exists? "objj_js_single.js"
`rm objj_js.grammar` if File.exists? "objj_js.grammar"
`rm objj_js.actions` if File.exists? "objj_js.actions"
`rm objj_js.gotos` if File.exists? "objj_js.gotos"
end