Class: BitmapCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/fwi/compilers/bitmap/compiler.rb

Instance Method Summary collapse

Instance Method Details

#after_parseObject



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, options
    base = File.basename(file, File.extname(file))
    f = File.join(options[:output], base + ".bitmap")
    FileUtils.mkdir_p File.expand_path("..", f)
    File.write(f, JSON.pretty_generate(bitmap))
end

#on_selectedObject



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 populate_options o
end