Class: BitmapCompiler
- Inherits:
-
Object
- Object
- BitmapCompiler
- Defined in:
- lib/fwi/compilers/bitmap/compiler.rb
Instance Method Summary collapse
- #after_parse ⇒ Object
- #compile(file, lex, bitmap, options) ⇒ Object
- #on_selected ⇒ Object
- #populate_options(o) ⇒ Object
Instance Method Details
#after_parse ⇒ Object
9 |
# File 'lib/fwi/compilers/bitmap/compiler.rb', line 9 def after_parse; end |
#compile(file, lex, bitmap, options) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/fwi/compilers/bitmap/compiler.rb', line 12 def compile file, lex, bitmap, base = File.basename(file, File.extname(file)) f = File.join([:output], base + ".bitmap") FileUtils.mkdir_p File.("..", f) File.write(f, JSON.pretty_generate(bitmap)) end |
#on_selected ⇒ Object
10 |
# File 'lib/fwi/compilers/bitmap/compiler.rb', line 10 def on_selected; end |
#populate_options(o) ⇒ Object
6 7 |
# File 'lib/fwi/compilers/bitmap/compiler.rb', line 6 def o end |