we-like-parsers / pegen

PEG parser generator for Python
https://we-like-parsers.github.io/pegen/
MIT License
155 stars 33 forks source link

Metaparser cannot be regenerated since 74eb1c37c8c2fab2767a349e9e3fb9bbcf1edd6e #32

Closed pablogsal closed 3 years ago

pablogsal commented 3 years ago

Unfortunately, seems that we cannot regenerate the metaparser (make regen-metaparser) since commit 74eb1c37c8c2fab2767a349e9e3fb9bbcf1edd6e.

pablogsal commented 3 years ago

@MatthieuDartiailh can you give it a look?

pablogsal commented 3 years ago

Somehow it doesn't like that "memo" is a keyword in the actions

pablogsal commented 3 years ago

The problem is that this condition is wrong:

if tok.type == token.NAME and tok.string not in self.KEYWORDS:

that has to be liften in the actions

pablogsal commented 3 years ago

The easier way for now is to make "memo" a soft keyword

MatthieuDartiailh commented 3 years ago

Sorry I missed this. I will try to see if I can come up with a more longterm fix.