{"action":"created","issue":{"url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/97","labels_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/97/comments","events_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/97/events","html_url":"https://github.com/JSQLParser/JSqlParser/issues/97","id":52206097,"number":97,"title":"JJTree - AST for JSqlParser","user":{"login":"wumpz","id":1569337,"avatar_url":"https://avatars.githubusercontent.com/u/1569337?v=3","gravatar_id":"","url":"https://api.github.com/users/wumpz","html_url":"https://github.com/wumpz","followers_url":"https://api.github.com/users/wumpz/followers","following_url":"https://api.github.com/users/wumpz/following{/other_user}","gists_url":"https://api.github.com/users/wumpz/gists{/gist_id}","starred_url":"https://api.github.com/users/wumpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wumpz/subscriptions","organizations_url":"https://api.github.com/users/wumpz/orgs","repos_url":"https://api.github.com/users/wumpz/repos","events_url":"https://api.github.com/users/wumpz/events{/privacy}","received_events_url":"https://api.github.com/users/wumpz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JSQLParser/JSqlParser/labels/discussion","name":"discussion","color":"fbca04"},{"url":"https://api.github.com/repos/JSQLParser/JSqlParser/labels/improvement","name":"improvement","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-17T06:27:02Z","updated_at":"2015-04-30T15:39:00Z","closed_at":null,"body":"I am thinking about integrating JavaCCs AST building using JJTree into the parser. After investigation I could say:\r\n\r\nPro:\r\n- AST is a different view, how the parser accepts an SQL\r\n- Position of tokens can be extracted\r\n- Visitor pattern automatically included (JJTree option)\r\n\r\nCon:\r\n- this comes at the cost of 20 percent performance at worst and more memory consumption.\r\n\r\nAs this functionality could not be switched off (or is there a way?) I am curious if this is a lacking feature or more or less a burden to the parser. I am not quite sure.\r\n\r\nAny comments to this are appreciated. ;) "},"comment":{"url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/comments/97843175","html_url":"https://github.com/JSQLParser/JSqlParser/issues/97#issuecomment-97843175","issue_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/97","id":97843175,"user":{"login":"wumpz","id":1569337,"avatar_url":"https://avatars.githubusercontent.com/u/1569337?v=3","gravatar_id":"","url":"https://api.github.com/users/wumpz","html_url":"https://github.com/wumpz","followers_url":"https://api.github.com/users/wumpz/followers","following_url":"https://api.github.com/users/wumpz/following{/other_user}","gists_url":"https://api.github.com/users/wumpz/gists{/gist_id}","starred_url":"https://api.github.com/users/wumpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wumpz/subscriptions","organizations_url":"https://api.github.com/users/wumpz/orgs","repos_url":"https://api.github.com/users/wumpz/repos","events_url":"https://api.github.com/users/wumpz/events{/privacy}","received_events_url":"https://api.github.com/users/wumpz/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T15:39:00Z","updated_at":"2015-04-30T15:39:00Z","body":"The deparsers would remain. An advantage is that the complete traversal structure is generated by JavaCC. So no visitors have to be implemented."}}