{"action":"created","comment":{"url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/comments/219709742","pull_request_review_id":157949852,"id":219709742,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTcwOTc0Mg==","diff_hunk":"@@ -4,124 +4,120 @@ use std::hash::{Hash, Hasher};\n \n #[macro_use] extern crate prattle;\n \n-use prattle::node::Node;\n-use prattle::spec::ParserSpec;\n-use prattle::lexer::LexerVec;\n-use prattle::parser::{GeneralParser, Parser};\n-use prattle::precedence::PrecedenceLevel;\n+use prattle::prelude::*;\n \n #[derive(Debug, Clone, Eq, Ord)]\n-pub enum Token {\n+pub enum CToken {\n     Number(String), \n     Ident(String), \n     Add, Sub, \n     Mul, Div, Mod, \n     LParens, RParens\n }\n \n-impl PartialEq for Token {\n-    fn eq(&self, other: &Token) -> bool {\n+impl PartialEq for CToken {\n+    fn eq(&self, other: &CToken) -> bool {\n         let lhs = match self {\n-            Token::Number(_) => 0, \n-            Token::Ident(_) => 1, \n-            Token::Add => 2, \n-            Token::Sub => 3,\n-            Token::Mul => 4,\n-            Token::Div => 5,\n-            Token::Mod => 6,\n-            Token::LParens => 7,\n-            Token::RParens => 8,\n+            CToken::Number(_) => 0, \n+            CToken::Ident(_) => 1, \n+            CToken::Add => 2, \n+            CToken::Sub => 3,\n+            CToken::Mul => 4,\n+            CToken::Div => 5,\n+            CToken::Mod => 6,\n+            CToken::LParens => 7,\n+            CToken::RParens => 8,\n         };\n         let rhs = match other {\n-            Token::Number(_) => 0, \n-            Token::Ident(_) => 1, \n-            Token::Add => 2, \n-            Token::Sub => 3,\n-            Token::Mul => 4,\n-            Token::Div => 5,\n-            Token::Mod => 6,\n-            Token::LParens => 7,\n-            Token::RParens => 8,\n+            CToken::Number(_) => 0, \n+            CToken::Ident(_) => 1, \n+            CToken::Add => 2, \n+            CToken::Sub => 3,\n+            CToken::Mul => 4,\n+            CToken::Div => 5,\n+            CToken::Mod => 6,\n+            CToken::LParens => 7,\n+            CToken::RParens => 8,\n         };\n         lhs.eq(&rhs)\n     }\n }","path":"examples/token_spec.rs","position":67,"original_position":67,"commit_id":"7562e67dcb09b215022820b6a3a839ef3c3d5f82","original_commit_id":"8b8f7d57b727c64b89fd86bca27c6d72c3aaca3a","user":{"login":"purpleposeidon","id":150333,"node_id":"MDQ6VXNlcjE1MDMzMw==","avatar_url":"https://avatars1.githubusercontent.com/u/150333?v=4","gravatar_id":"","url":"https://api.github.com/users/purpleposeidon","html_url":"https://github.com/purpleposeidon","followers_url":"https://api.github.com/users/purpleposeidon/followers","following_url":"https://api.github.com/users/purpleposeidon/following{/other_user}","gists_url":"https://api.github.com/users/purpleposeidon/gists{/gist_id}","starred_url":"https://api.github.com/users/purpleposeidon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpleposeidon/subscriptions","organizations_url":"https://api.github.com/users/purpleposeidon/orgs","repos_url":"https://api.github.com/users/purpleposeidon/repos","events_url":"https://api.github.com/users/purpleposeidon/events{/privacy}","received_events_url":"https://api.github.com/users/purpleposeidon/received_events","type":"User","site_admin":false},"body":"https://doc.rust-lang.org/std/mem/fn.discriminant.html","created_at":"2018-09-23T20:06:04Z","updated_at":"2018-09-23T20:52:51Z","html_url":"https://github.com/ZerothLaw/prattle-rs/pull/3#discussion_r219709742","pull_request_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/comments/219709742"},"html":{"href":"https://github.com/ZerothLaw/prattle-rs/pull/3#discussion_r219709742"},"pull_request":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3","id":217512259,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NTEyMjU5","html_url":"https://github.com/ZerothLaw/prattle-rs/pull/3","diff_url":"https://github.com/ZerothLaw/prattle-rs/pull/3.diff","patch_url":"https://github.com/ZerothLaw/prattle-rs/pull/3.patch","issue_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/3","number":3,"state":"open","locked":false,"title":"Bounds","user":{"login":"ZerothLaw","id":186607,"node_id":"MDQ6VXNlcjE4NjYwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/186607?v=4","gravatar_id":"","url":"https://api.github.com/users/ZerothLaw","html_url":"https://github.com/ZerothLaw","followers_url":"https://api.github.com/users/ZerothLaw/followers","following_url":"https://api.github.com/users/ZerothLaw/following{/other_user}","gists_url":"https://api.github.com/users/ZerothLaw/gists{/gist_id}","starred_url":"https://api.github.com/users/ZerothLaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZerothLaw/subscriptions","organizations_url":"https://api.github.com/users/ZerothLaw/orgs","repos_url":"https://api.github.com/users/ZerothLaw/repos","events_url":"https://api.github.com/users/ZerothLaw/events{/privacy}","received_events_url":"https://api.github.com/users/ZerothLaw/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-23T14:23:31Z","updated_at":"2018-09-23T20:52:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12caa0abdf7d25fe8d386e368238de080e530bb4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/3/comments","statuses_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/statuses/7562e67dcb09b215022820b6a3a839ef3c3d5f82","head":{"label":"ZerothLaw:bounds","ref":"bounds","sha":"7562e67dcb09b215022820b6a3a839ef3c3d5f82","user":{"login":"ZerothLaw","id":186607,"node_id":"MDQ6VXNlcjE4NjYwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/186607?v=4","gravatar_id":"","url":"https://api.github.com/users/ZerothLaw","html_url":"https://github.com/ZerothLaw","followers_url":"https://api.github.com/users/ZerothLaw/followers","following_url":"https://api.github.com/users/ZerothLaw/following{/other_user}","gists_url":"https://api.github.com/users/ZerothLaw/gists{/gist_id}","starred_url":"https://api.github.com/users/ZerothLaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZerothLaw/subscriptions","organizations_url":"https://api.github.com/users/ZerothLaw/orgs","repos_url":"https://api.github.com/users/ZerothLaw/repos","events_url":"https://api.github.com/users/ZerothLaw/events{/privacy}","received_events_url":"https://api.github.com/users/ZerothLaw/received_events","type":"User","site_admin":false},"repo":{"id":149813162,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk4MTMxNjI=","name":"prattle-rs","full_name":"ZerothLaw/prattle-rs","private":false,"owner":{"login":"ZerothLaw","id":186607,"node_id":"MDQ6VXNlcjE4NjYwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/186607?v=4","gravatar_id":"","url":"https://api.github.com/users/ZerothLaw","html_url":"https://github.com/ZerothLaw","followers_url":"https://api.github.com/users/ZerothLaw/followers","following_url":"https://api.github.com/users/ZerothLaw/following{/other_user}","gists_url":"https://api.github.com/users/ZerothLaw/gists{/gist_id}","starred_url":"https://api.github.com/users/ZerothLaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZerothLaw/subscriptions","organizations_url":"https://api.github.com/users/ZerothLaw/orgs","repos_url":"https://api.github.com/users/ZerothLaw/repos","events_url":"https://api.github.com/users/ZerothLaw/events{/privacy}","received_events_url":"https://api.github.com/users/ZerothLaw/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ZerothLaw/prattle-rs","description":"Rust implementation of a general, configurable Pratt/TDOP parser. ","fork":false,"url":"https://api.github.com/repos/ZerothLaw/prattle-rs","forks_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/forks","keys_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/teams","hooks_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/hooks","issue_events_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/events{/number}","events_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/events","assignees_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/assignees{/user}","branches_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/branches{/branch}","tags_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/tags","blobs_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/languages","stargazers_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/stargazers","contributors_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/contributors","subscribers_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/subscribers","subscription_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/subscription","commits_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/contents/{+path}","compare_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/merges","archive_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/downloads","issues_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues{/number}","pulls_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/labels{/name}","releases_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/releases{/id}","deployments_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/deployments","created_at":"2018-09-21T20:14:14Z","updated_at":"2018-09-22T17:46:01Z","pushed_at":"2018-09-23T20:31:54Z","git_url":"git://github.com/ZerothLaw/prattle-rs.git","ssh_url":"git@github.com:ZerothLaw/prattle-rs.git","clone_url":"https://github.com/ZerothLaw/prattle-rs.git","svn_url":"https://github.com/ZerothLaw/prattle-rs","homepage":null,"size":37,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"ZerothLaw:master","ref":"master","sha":"bebacfdc8cbdee50885e2b72b8cae7e63e4fce56","user":{"login":"ZerothLaw","id":186607,"node_id":"MDQ6VXNlcjE4NjYwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/186607?v=4","gravatar_id":"","url":"https://api.github.com/users/ZerothLaw","html_url":"https://github.com/ZerothLaw","followers_url":"https://api.github.com/users/ZerothLaw/followers","following_url":"https://api.github.com/users/ZerothLaw/following{/other_user}","gists_url":"https://api.github.com/users/ZerothLaw/gists{/gist_id}","starred_url":"https://api.github.com/users/ZerothLaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZerothLaw/subscriptions","organizations_url":"https://api.github.com/users/ZerothLaw/orgs","repos_url":"https://api.github.com/users/ZerothLaw/repos","events_url":"https://api.github.com/users/ZerothLaw/events{/privacy}","received_events_url":"https://api.github.com/users/ZerothLaw/received_events","type":"User","site_admin":false},"repo":{"id":149813162,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk4MTMxNjI=","name":"prattle-rs","full_name":"ZerothLaw/prattle-rs","private":false,"owner":{"login":"ZerothLaw","id":186607,"node_id":"MDQ6VXNlcjE4NjYwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/186607?v=4","gravatar_id":"","url":"https://api.github.com/users/ZerothLaw","html_url":"https://github.com/ZerothLaw","followers_url":"https://api.github.com/users/ZerothLaw/followers","following_url":"https://api.github.com/users/ZerothLaw/following{/other_user}","gists_url":"https://api.github.com/users/ZerothLaw/gists{/gist_id}","starred_url":"https://api.github.com/users/ZerothLaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZerothLaw/subscriptions","organizations_url":"https://api.github.com/users/ZerothLaw/orgs","repos_url":"https://api.github.com/users/ZerothLaw/repos","events_url":"https://api.github.com/users/ZerothLaw/events{/privacy}","received_events_url":"https://api.github.com/users/ZerothLaw/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ZerothLaw/prattle-rs","description":"Rust implementation of a general, configurable Pratt/TDOP parser. ","fork":false,"url":"https://api.github.com/repos/ZerothLaw/prattle-rs","forks_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/forks","keys_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/teams","hooks_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/hooks","issue_events_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/events{/number}","events_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/events","assignees_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/assignees{/user}","branches_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/branches{/branch}","tags_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/tags","blobs_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/languages","stargazers_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/stargazers","contributors_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/contributors","subscribers_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/subscribers","subscription_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/subscription","commits_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/contents/{+path}","compare_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/merges","archive_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/downloads","issues_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues{/number}","pulls_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/labels{/name}","releases_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/releases{/id}","deployments_url":"https://api.github.com/repos/ZerothLaw/prattle-rs/deployments","created_at":"2018-09-21T20:14:14Z","updated_at":"2018-09-22T17:46:01Z","pushed_at":"2018-09-23T20:31:54Z","git_url":"git://github.com/ZerothLaw/prattle-rs.git","ssh_url":"git@github.com:ZerothLaw/prattle-rs.git","clone_url":"https://github.com/ZerothLaw/prattle-rs.git","svn_url":"https://github.com/ZerothLaw/prattle-rs","homepage":null,"size":37,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3"},"html":{"href":"https://github.com/ZerothLaw/prattle-rs/pull/3"},"issue":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/3"},"comments":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ZerothLaw/prattle-rs/statuses/7562e67dcb09b215022820b6a3a839ef3c3d5f82"}},"author_association":"OWNER"}}
{"actor":{"display_login":"purpleposeidon"}}