node/lib/metasm/metasm/preprocessor.rb
# used when doing 'raise tok, "foo"'
# raises a ParseError, adding backtrace information
used when doing 'raise tok, "foo"'
raises a ParseError, adding backtrace information
used when doing ' raise tok " foo " ' raises a ParseError adding backtrace information
def exception(msg='syntax error')
			msgh = msg.to_s
			if msg
				msgh << ' near '
				expanded_from.to_a.each { |ef| msgh << ef.exception(nil).message << " expanded to \n\t"  }
			end
			msgh << ((@raw.length > 35) ? (@raw[0..10] + '<...>' + @raw[-10..-1]).inspect : @raw.inspect)
			msgh << " at " << backtrace_str
			ParseError.new msgh
		end
def exception ( msg = 'syntax error' ) msgh = msg . to_s if msg msgh << ' near ' expanded_from . to_a . each { | ef | msgh << ef . exception ( nil ) . message << " expanded to \n\t" } end msgh << ( ( @raw . length > 35 ) ? ( @raw [ 0 .. 10 ] + '<...>' + @raw [ - 10 .. - 1 ] ) . inspect : @raw . inspect ) msgh << " at " << backtrace_str ParseError . new msgh end
used when doing 'raise tok, "foo"'
raises a ParseError, adding backtrace information
used when doing ' raise tok " foo " ' raises a ParseError adding backtrace information
msg