node/lib/metasm/metasm/parse_c.rb
# parses the current lexer content (or the text arg) for toplevel definitions
parses the current lexer content (or the text arg) for toplevel definitions
parses the current lexer content ( or the text arg ) for toplevel definitions
def parse(text=nil, filename='<unk>', lineno=1)
			@lexer.feed text, filename, lineno if text
			nil while not @lexer.eos? and (parse_definition(@toplevel) or parse_toplevel_statement(@toplevel))
			raise @lexer.readtok || self, 'invalid definition' if not @lexer.eos?
			sanity_checks
			self
		end
def parse ( text = nil , filename = '<unk>' , lineno = 1 ) @lexer . feed text , filename , lineno if text nil while not @lexer . eos? and ( parse_definition ( @toplevel ) or parse_toplevel_statement ( @toplevel ) ) raise @lexer . readtok || self , 'invalid definition' if not @lexer . eos? sanity_checks self end
parses the current lexer content (or the text arg) for toplevel definitions
parses the current lexer content ( or the text arg ) for toplevel definitions
text
filename
lineno