{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/9009","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/9009/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/9009/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/9009/events","html_url":"https://github.com/nim-lang/Nim/issues/9009","id":361542817,"node_id":"MDU6SXNzdWUzNjE1NDI4MTc=","number":9009,"title":"pegs doesn't work in nimscript","user":{"login":"KeepCoolWithCoolidge","id":37387200,"node_id":"MDQ6VXNlcjM3Mzg3MjAw","avatar_url":"https://avatars0.githubusercontent.com/u/37387200?v=4","gravatar_id":"","url":"https://api.github.com/users/KeepCoolWithCoolidge","html_url":"https://github.com/KeepCoolWithCoolidge","followers_url":"https://api.github.com/users/KeepCoolWithCoolidge/followers","following_url":"https://api.github.com/users/KeepCoolWithCoolidge/following{/other_user}","gists_url":"https://api.github.com/users/KeepCoolWithCoolidge/gists{/gist_id}","starred_url":"https://api.github.com/users/KeepCoolWithCoolidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeepCoolWithCoolidge/subscriptions","organizations_url":"https://api.github.com/users/KeepCoolWithCoolidge/orgs","repos_url":"https://api.github.com/users/KeepCoolWithCoolidge/repos","events_url":"https://api.github.com/users/KeepCoolWithCoolidge/events{/privacy}","received_events_url":"https://api.github.com/users/KeepCoolWithCoolidge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-19T01:30:31Z","updated_at":"2018-09-19T01:30:31Z","closed_at":null,"author_association":"NONE","body":"When you try to use pegs module in a nimscript, you get an error:\r\n\r\n> Hint: used config file '/Users/macbookpro/Documents/clutter_process/fix_opaque_structs.nims' [Conf]\r\n> stack trace: (most recent call last)\r\n> fix_opaque_structs.nims(7)\r\n> lib/pure/pegs.nim(1695)  peg\r\n> lib/pure/pegs.nim(1687)  parsePeg\r\n> lib/pure/pegs.nim(1469)  getTok\r\n> lib/pure/pegs.nim(1341)  getTok\r\n> lib/pure/pegs.nim(1217)  skip\r\n\r\nPegParser inherits from PegLexer. This seems to be okay with compiled code, but VM does not appear to be able to access the parent's buf variable. A work around is to combine the Lexer and Parser into one object...but that doesn't resolved underlying problem. This is probably already pointed out in another issue, but I thought I'd bring it up. Being able to use pegs in nimscripts is highly desirable "}}
{"actor":{"display_login":"KeepCoolWithCoolidge"}}