Parse a full statement block given as a string

Fatal error if the string is not a syntactically correct statement block

Property definitions

nitc :: parser_util $ ToolContext :: parse_stmts
	# Parse a full statement block given as a string
	# Fatal error if the `string` is not a syntactically correct statement block
	fun parse_stmts(string: String): AExpr
	do
		var mod_string = "do\n{string}\nend"
		var nmodule = parse_module(mod_string)
		var nblock = nmodule.n_classdefs.first.n_propdefs.first.as(AMethPropdef).n_block.as(ABlockExpr).n_expr.first.as(ADoExpr).n_block.as(not null)
		return nblock
	end
src/parser_util.nit:66,2--74,4