{"action":"created","comment":{"url":"https://api.github.com/repos/cdglabs/ohm/pulls/comments/47116584","id":47116584,"diff_hunk":"@@ -204,6 +204,18 @@ Captures the portion of the input that was consumed by the node.\n \n The number of child nodes that the node has.\n \n+<b><pre class=\"api\">n.minNumChildren: number</pre></b>\n+\n+For an iterator node, the minimal number of child nodes possible.\n+\n+<b><pre class=\"api\">n.maxNumChildren: number</pre></b>\n+\n+For an iterator node, the maximal number of child nodes possible.\n+\n+<b><pre class=\"api\">n.primitiveValue: number|string|...</pre></b>\n+\n+For a terminal node, the primitive value that the node has.","path":"doc/api-reference.md","position":14,"original_position":14,"commit_id":"afa07c6ddd0eb18ab52c60684ff2bf12eabbd73e","original_commit_id":"afa07c6ddd0eb18ab52c60684ff2bf12eabbd73e","user":{"login":"pdubroy","id":17293,"avatar_url":"https://avatars.githubusercontent.com/u/17293?v=3","gravatar_id":"","url":"https://api.github.com/users/pdubroy","html_url":"https://github.com/pdubroy","followers_url":"https://api.github.com/users/pdubroy/followers","following_url":"https://api.github.com/users/pdubroy/following{/other_user}","gists_url":"https://api.github.com/users/pdubroy/gists{/gist_id}","starred_url":"https://api.github.com/users/pdubroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdubroy/subscriptions","organizations_url":"https://api.github.com/users/pdubroy/orgs","repos_url":"https://api.github.com/users/pdubroy/repos","events_url":"https://api.github.com/users/pdubroy/events{/privacy}","received_events_url":"https://api.github.com/users/pdubroy/received_events","type":"User","site_admin":false},"body":"Maybe \"the raw value that was consumed from the input stream\"?","created_at":"2015-12-09T16:45:00Z","updated_at":"2015-12-09T16:45:00Z","html_url":"https://github.com/cdglabs/ohm/pull/48#discussion_r47116584","pull_request_url":"https://api.github.com/repos/cdglabs/ohm/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/cdglabs/ohm/pulls/comments/47116584"},"html":{"href":"https://github.com/cdglabs/ohm/pull/48#discussion_r47116584"},"pull_request":{"href":"https://api.github.com/repos/cdglabs/ohm/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/cdglabs/ohm/pulls/48","id":53073148,"html_url":"https://github.com/cdglabs/ohm/pull/48","diff_url":"https://github.com/cdglabs/ohm/pull/48.diff","patch_url":"https://github.com/cdglabs/ohm/pull/48.patch","issue_url":"https://api.github.com/repos/cdglabs/ohm/issues/48","number":48,"state":"open","locked":false,"title":"Adding minMatches and maxMatches to IteratorNode and Wrapper","user":{"login":"mroeder","id":160313,"avatar_url":"https://avatars.githubusercontent.com/u/160313?v=3","gravatar_id":"","url":"https://api.github.com/users/mroeder","html_url":"https://github.com/mroeder","followers_url":"https://api.github.com/users/mroeder/followers","following_url":"https://api.github.com/users/mroeder/following{/other_user}","gists_url":"https://api.github.com/users/mroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeder/subscriptions","organizations_url":"https://api.github.com/users/mroeder/orgs","repos_url":"https://api.github.com/users/mroeder/repos","events_url":"https://api.github.com/users/mroeder/events{/privacy}","received_events_url":"https://api.github.com/users/mroeder/received_events","type":"User","site_admin":false},"body":"Just as @alexwarth and I talked about last Friday, I added minMatches and maxMatches to the IterationNode (and its wrapper) so that semantic actions can act on this information (iteration can mean optional node or array of nodes).\r\n\r\nI also extended the `_iter` test and documentation.\r\n\r\nWhat I am not sure is whether the wrapper should use `minNumChildren` or `minNumMatches` (the IterationNode has a `minMatches` whereas the wrapper has `minNumChildren`). ","created_at":"2015-12-09T03:41:49Z","updated_at":"2015-12-09T16:45:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c52a9f8b6b06f093875593d6418ae6bb23b0bfc4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cdglabs/ohm/pulls/48/commits","review_comments_url":"https://api.github.com/repos/cdglabs/ohm/pulls/48/comments","review_comment_url":"https://api.github.com/repos/cdglabs/ohm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cdglabs/ohm/issues/48/comments","statuses_url":"https://api.github.com/repos/cdglabs/ohm/statuses/afa07c6ddd0eb18ab52c60684ff2bf12eabbd73e","head":{"label":"mroeder:master","ref":"master","sha":"afa07c6ddd0eb18ab52c60684ff2bf12eabbd73e","user":{"login":"mroeder","id":160313,"avatar_url":"https://avatars.githubusercontent.com/u/160313?v=3","gravatar_id":"","url":"https://api.github.com/users/mroeder","html_url":"https://github.com/mroeder","followers_url":"https://api.github.com/users/mroeder/followers","following_url":"https://api.github.com/users/mroeder/following{/other_user}","gists_url":"https://api.github.com/users/mroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeder/subscriptions","organizations_url":"https://api.github.com/users/mroeder/orgs","repos_url":"https://api.github.com/users/mroeder/repos","events_url":"https://api.github.com/users/mroeder/events{/privacy}","received_events_url":"https://api.github.com/users/mroeder/received_events","type":"User","site_admin":false},"repo":{"id":47665716,"name":"ohm","full_name":"mroeder/ohm","owner":{"login":"mroeder","id":160313,"avatar_url":"https://avatars.githubusercontent.com/u/160313?v=3","gravatar_id":"","url":"https://api.github.com/users/mroeder","html_url":"https://github.com/mroeder","followers_url":"https://api.github.com/users/mroeder/followers","following_url":"https://api.github.com/users/mroeder/following{/other_user}","gists_url":"https://api.github.com/users/mroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeder/subscriptions","organizations_url":"https://api.github.com/users/mroeder/orgs","repos_url":"https://api.github.com/users/mroeder/repos","events_url":"https://api.github.com/users/mroeder/events{/privacy}","received_events_url":"https://api.github.com/users/mroeder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mroeder/ohm","description":"A library and language for parsing and pattern matching.","fork":true,"url":"https://api.github.com/repos/mroeder/ohm","forks_url":"https://api.github.com/repos/mroeder/ohm/forks","keys_url":"https://api.github.com/repos/mroeder/ohm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mroeder/ohm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mroeder/ohm/teams","hooks_url":"https://api.github.com/repos/mroeder/ohm/hooks","issue_events_url":"https://api.github.com/repos/mroeder/ohm/issues/events{/number}","events_url":"https://api.github.com/repos/mroeder/ohm/events","assignees_url":"https://api.github.com/repos/mroeder/ohm/assignees{/user}","branches_url":"https://api.github.com/repos/mroeder/ohm/branches{/branch}","tags_url":"https://api.github.com/repos/mroeder/ohm/tags","blobs_url":"https://api.github.com/repos/mroeder/ohm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mroeder/ohm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mroeder/ohm/git/refs{/sha}","trees_url":"https://api.github.com/repos/mroeder/ohm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mroeder/ohm/statuses/{sha}","languages_url":"https://api.github.com/repos/mroeder/ohm/languages","stargazers_url":"https://api.github.com/repos/mroeder/ohm/stargazers","contributors_url":"https://api.github.com/repos/mroeder/ohm/contributors","subscribers_url":"https://api.github.com/repos/mroeder/ohm/subscribers","subscription_url":"https://api.github.com/repos/mroeder/ohm/subscription","commits_url":"https://api.github.com/repos/mroeder/ohm/commits{/sha}","git_commits_url":"https://api.github.com/repos/mroeder/ohm/git/commits{/sha}","comments_url":"https://api.github.com/repos/mroeder/ohm/comments{/number}","issue_comment_url":"https://api.github.com/repos/mroeder/ohm/issues/comments{/number}","contents_url":"https://api.github.com/repos/mroeder/ohm/contents/{+path}","compare_url":"https://api.github.com/repos/mroeder/ohm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mroeder/ohm/merges","archive_url":"https://api.github.com/repos/mroeder/ohm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mroeder/ohm/downloads","issues_url":"https://api.github.com/repos/mroeder/ohm/issues{/number}","pulls_url":"https://api.github.com/repos/mroeder/ohm/pulls{/number}","milestones_url":"https://api.github.com/repos/mroeder/ohm/milestones{/number}","notifications_url":"https://api.github.com/repos/mroeder/ohm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mroeder/ohm/labels{/name}","releases_url":"https://api.github.com/repos/mroeder/ohm/releases{/id}","created_at":"2015-12-09T03:17:13Z","updated_at":"2015-12-09T03:17:13Z","pushed_at":"2015-12-09T03:36:57Z","git_url":"git://github.com/mroeder/ohm.git","ssh_url":"git@github.com:mroeder/ohm.git","clone_url":"https://github.com/mroeder/ohm.git","svn_url":"https://github.com/mroeder/ohm","homepage":"","size":11459,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cdglabs:master","ref":"master","sha":"95e58b0acc087b5041336301ee629614402009b8","user":{"login":"cdglabs","id":9912100,"avatar_url":"https://avatars.githubusercontent.com/u/9912100?v=3","gravatar_id":"","url":"https://api.github.com/users/cdglabs","html_url":"https://github.com/cdglabs","followers_url":"https://api.github.com/users/cdglabs/followers","following_url":"https://api.github.com/users/cdglabs/following{/other_user}","gists_url":"https://api.github.com/users/cdglabs/gists{/gist_id}","starred_url":"https://api.github.com/users/cdglabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdglabs/subscriptions","organizations_url":"https://api.github.com/users/cdglabs/orgs","repos_url":"https://api.github.com/users/cdglabs/repos","events_url":"https://api.github.com/users/cdglabs/events{/privacy}","received_events_url":"https://api.github.com/users/cdglabs/received_events","type":"Organization","site_admin":false},"repo":{"id":36021747,"name":"ohm","full_name":"cdglabs/ohm","owner":{"login":"cdglabs","id":9912100,"avatar_url":"https://avatars.githubusercontent.com/u/9912100?v=3","gravatar_id":"","url":"https://api.github.com/users/cdglabs","html_url":"https://github.com/cdglabs","followers_url":"https://api.github.com/users/cdglabs/followers","following_url":"https://api.github.com/users/cdglabs/following{/other_user}","gists_url":"https://api.github.com/users/cdglabs/gists{/gist_id}","starred_url":"https://api.github.com/users/cdglabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdglabs/subscriptions","organizations_url":"https://api.github.com/users/cdglabs/orgs","repos_url":"https://api.github.com/users/cdglabs/repos","events_url":"https://api.github.com/users/cdglabs/events{/privacy}","received_events_url":"https://api.github.com/users/cdglabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cdglabs/ohm","description":"A library and language for parsing and pattern matching.","fork":false,"url":"https://api.github.com/repos/cdglabs/ohm","forks_url":"https://api.github.com/repos/cdglabs/ohm/forks","keys_url":"https://api.github.com/repos/cdglabs/ohm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdglabs/ohm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdglabs/ohm/teams","hooks_url":"https://api.github.com/repos/cdglabs/ohm/hooks","issue_events_url":"https://api.github.com/repos/cdglabs/ohm/issues/events{/number}","events_url":"https://api.github.com/repos/cdglabs/ohm/events","assignees_url":"https://api.github.com/repos/cdglabs/ohm/assignees{/user}","branches_url":"https://api.github.com/repos/cdglabs/ohm/branches{/branch}","tags_url":"https://api.github.com/repos/cdglabs/ohm/tags","blobs_url":"https://api.github.com/repos/cdglabs/ohm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdglabs/ohm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdglabs/ohm/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdglabs/ohm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdglabs/ohm/statuses/{sha}","languages_url":"https://api.github.com/repos/cdglabs/ohm/languages","stargazers_url":"https://api.github.com/repos/cdglabs/ohm/stargazers","contributors_url":"https://api.github.com/repos/cdglabs/ohm/contributors","subscribers_url":"https://api.github.com/repos/cdglabs/ohm/subscribers","subscription_url":"https://api.github.com/repos/cdglabs/ohm/subscription","commits_url":"https://api.github.com/repos/cdglabs/ohm/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdglabs/ohm/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdglabs/ohm/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdglabs/ohm/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdglabs/ohm/contents/{+path}","compare_url":"https://api.github.com/repos/cdglabs/ohm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdglabs/ohm/merges","archive_url":"https://api.github.com/repos/cdglabs/ohm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdglabs/ohm/downloads","issues_url":"https://api.github.com/repos/cdglabs/ohm/issues{/number}","pulls_url":"https://api.github.com/repos/cdglabs/ohm/pulls{/number}","milestones_url":"https://api.github.com/repos/cdglabs/ohm/milestones{/number}","notifications_url":"https://api.github.com/repos/cdglabs/ohm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdglabs/ohm/labels{/name}","releases_url":"https://api.github.com/repos/cdglabs/ohm/releases{/id}","created_at":"2015-05-21T15:42:14Z","updated_at":"2015-12-09T15:41:34Z","pushed_at":"2015-12-09T03:41:49Z","git_url":"git://github.com/cdglabs/ohm.git","ssh_url":"git@github.com:cdglabs/ohm.git","clone_url":"https://github.com/cdglabs/ohm.git","svn_url":"https://github.com/cdglabs/ohm","homepage":"","size":13122,"stargazers_count":232,"watchers_count":232,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":9,"forks":8,"open_issues":9,"watchers":232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cdglabs/ohm/pulls/48"},"html":{"href":"https://github.com/cdglabs/ohm/pull/48"},"issue":{"href":"https://api.github.com/repos/cdglabs/ohm/issues/48"},"comments":{"href":"https://api.github.com/repos/cdglabs/ohm/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/cdglabs/ohm/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/cdglabs/ohm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cdglabs/ohm/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/cdglabs/ohm/statuses/afa07c6ddd0eb18ab52c60684ff2bf12eabbd73e"}}}}