These are chat archives for pest-parser/pest

15th
Dec 2017
Ske
@xSke
Dec 15 2017 16:13
Parsing this grammar makes pest error when compiling: https://hastebin.com/unizocufub.cs I can't see any issue with my syntax
Error:
= help: message: error parsing "synasm.pest"
        --> synasm.pest:16:1
         |
      16 | push_instruction = {"push" ~ param}
         | ^---
         |
         = expected rule
Daniel Collin
@emoon
Dec 15 2017 16:20
@xSke I think that might need to be push_instruction = { (“push”) ~ param } but I’m not fully sure
Ske
@xSke
Dec 15 2017 16:22
Just fixed it. turns out it doesn't like rules starting with "push"
renaming all of them to ins_whatever makes it compile
Daniel Collin
@emoon
Dec 15 2017 16:23
Is push a Rust keyword or so?
nope
Maybe @dragostis knows the reason.
Dragoș Tiselice
@dragostis
Dec 15 2017 19:26
push is a keyword, but push* should be allowed. Could you please open up an issue for this?
Dragoș Tiselice
@dragostis
Dec 15 2017 20:15
@xSke I've fixed the issue on master.