{"action":"opened","issue":{"url":"https://api.github.com/repos/Nordth/php-pegjs/issues/3","labels_url":"https://api.github.com/repos/Nordth/php-pegjs/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Nordth/php-pegjs/issues/3/comments","events_url":"https://api.github.com/repos/Nordth/php-pegjs/issues/3/events","html_url":"https://github.com/Nordth/php-pegjs/issues/3","id":81317479,"number":3,"title":"syntax error if the parse() is called multiple times","user":{"login":"ptica","id":169873,"avatar_url":"https://avatars.githubusercontent.com/u/169873?v=3","gravatar_id":"","url":"https://api.github.com/users/ptica","html_url":"https://github.com/ptica","followers_url":"https://api.github.com/users/ptica/followers","following_url":"https://api.github.com/users/ptica/following{/other_user}","gists_url":"https://api.github.com/users/ptica/gists{/gist_id}","starred_url":"https://api.github.com/users/ptica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptica/subscriptions","organizations_url":"https://api.github.com/users/ptica/orgs","repos_url":"https://api.github.com/users/ptica/repos","events_url":"https://api.github.com/users/ptica/events{/privacy}","received_events_url":"https://api.github.com/users/ptica/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T07:08:45Z","updated_at":"2015-05-27T07:08:45Z","closed_at":null,"body":"i've got a pet grammar\r\n```\r\nstart = digits:[0-9]+ {\r\n  return intval(join('', $digits));\r\n}\r\n```\r\n```php\r\ninclude \"pet.php\";\r\ntry {\r\n\t$parser = new PhpPegJs\\Parser;\r\n\t$result = $parser->parse('26');\r\n\t$result = $parser->parse('27'); // HERE IT CHOKES\r\n} catch (PhpPegJs\\SyntaxError $ex) {\r\n\t$message = \"Syntax error: \" . $ex->getMessage() . ' At line ' . $ex->grammarLine . ' column ' . $ex->grammarColumn . ' offset ' . $ex->grammarOffset . \"\\n\";\r\n\techo $message;\r\n}\r\n```\r\n```\r\nSyntax error: Expected [0-9] but end of input found. At line 1 column 3 offset 2\r\n```\r\n\r\nthis is independent of the grammar I use"}}