node/lib/metasm/metasm/preprocessor.rb
def feed!(text, filename='unknown', lineno=1)
		raise ArgumentError, 'need something to parse!' if not text
		@text = text
		if not @may_preprocess and (@text =~ /^\s*(#|\?\?=)/ or (not @definition.empty? and
				 @text =~ /#{@definition.keys.map { |k| Regexp.escape(k) }.join('|')}/))
			@may_preprocess = true
		end
		# @filename[-1] used in trace_macros to distinguish generic/specific files
		@filename = "\"#{filename}\""
		@lineno = lineno
		@pos = 0
		@queue = []
		@backtrace = []
		self
	end
# starts a new lexer, with the specified initial filename/line number (for backtraces)
# discards old text/whatever
starts a new lexer, with the specified initial filename/line number (for backtraces)
discards old text/whatever
starts a new lexer with the specified initial filename / line number ( for backtraces ) discards old text / whatever
def feed!(text, filename='unknown', lineno=1)
		raise ArgumentError, 'need something to parse!' if not text
		@text = text
		if not @may_preprocess and (@text =~ /^\s*(#|\?\?=)/ or (not @definition.empty? and
				 @text =~ /#{@definition.keys.map { |k| Regexp.escape(k) }.join('|')}/))
			@may_preprocess = true
		end
		@filename = "\"#{filename}\""
		@lineno = lineno
		@pos = 0
		@queue = []
		@backtrace = []
		self
	end
def feed! ( text , filename = 'unknown' , lineno = 1 ) raise ArgumentError , 'need something to parse!' if not text @text = text if not @may_preprocess and ( @text =~ / ^ \s *(#| \? \? =) / or ( not @definition . empty? and @text =~ / #{ @definition . keys . map { | k | Regexp . escape ( k ) } . join ( '|' ) } / ) ) @may_preprocess = true end @filename = "\"#{filename}\"" @lineno = lineno @pos = 0 @queue = [ ] @backtrace = [ ] self end
starts a new lexer, with the specified initial filename/line number (for backtraces)
discards old text/whatever
starts a new lexer with the specified initial filename / line number ( for backtraces ) discards old text / whatever
# @filename[-1] used in trace_macros to distinguish generic/specific files
text
filename
lineno