Sha256: f59f1206d850d7de38b4d2e9c18466889d35e66de9dc412105af8ca709263868

Contents?: true

Size: 498 Bytes

Versions: 6

Compression:

Stored size: 498 Bytes

Contents

#!/usr/bin/env ruby
#    This file is part of Metasm, the Ruby assembly manipulation suite
#    Copyright (C) 2006-2009 Yoann GUILLOT
#
#    Licence is LGPL, see LICENCE in the top-level directory

#
# this file takes preprocessor files as arguments
# it preprocesses their content and dump the result to stdout
# it also dumps all macro definitions
#

require 'metasm/preprocessor'

p = Metasm::Preprocessor.new
p.feed(ARGF.read)
raw = p.dump
puts p.dump_macros(p.definition.keys, false)
puts raw

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
metasm-1.0.5 samples/preprocess-flatten.rb
metasm-1.0.4 samples/preprocess-flatten.rb
metasm-1.0.3 samples/preprocess-flatten.rb
metasm-1.0.2 samples/preprocess-flatten.rb
metasm-1.0.1 samples/preprocess-flatten.rb
metasm-1.0.0 samples/preprocess-flatten.rb