Parsing of parenthesis in processes