{"action":"opened","issue":{"url":"https://api.github.com/repos/raydac/java-binary-block-parser/issues/9","repository_url":"https://api.github.com/repos/raydac/java-binary-block-parser","labels_url":"https://api.github.com/repos/raydac/java-binary-block-parser/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/raydac/java-binary-block-parser/issues/9/comments","events_url":"https://api.github.com/repos/raydac/java-binary-block-parser/issues/9/events","html_url":"https://github.com/raydac/java-binary-block-parser/issues/9","id":161661913,"number":9,"title":"Nested structures and references in expression language","user":{"login":"red-hood","id":6573801,"avatar_url":"https://avatars.githubusercontent.com/u/6573801?v=3","gravatar_id":"","url":"https://api.github.com/users/red-hood","html_url":"https://github.com/red-hood","followers_url":"https://api.github.com/users/red-hood/followers","following_url":"https://api.github.com/users/red-hood/following{/other_user}","gists_url":"https://api.github.com/users/red-hood/gists{/gist_id}","starred_url":"https://api.github.com/users/red-hood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red-hood/subscriptions","organizations_url":"https://api.github.com/users/red-hood/orgs","repos_url":"https://api.github.com/users/red-hood/repos","events_url":"https://api.github.com/users/red-hood/events{/privacy}","received_events_url":"https://api.github.com/users/red-hood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-22T11:52:49Z","updated_at":"2016-06-22T11:52:49Z","closed_at":null,"body":"Hi,\r\n\r\nI would like to parse a binary stream of complex, nested structures, like it is done e.g. in PNGParsingTest, where the class Png has a non-primitive member of type Chunk.\r\n\r\nIn the test file, the description of the binary format (the arguement to prepare) is given as a complete, nested structure, together with the two class declarations in the same file.\r\n\r\nI would prefer to keep the declaration of the two classes separate together with their binary description, and only make a reference to the Chunk type in the DSL for the Png class and have JBBP resolve the reference. Is that possible with the current state of JBBP?\r\n\r\nAlso, is there any way to automatically inherit from a binary parser description to reuse it for an inherited mapped class?"}}
{"actor":{"display_login":"red-hood"}}