progval / rust-python-parser

A Python parser written in Rust using nom

Home Page:https://docs.rs/python-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic when parsing identifiers that start with keywords

ralexstokes opened this issue · comments

The parser is a little too greedy currently...

Input that fails:

if_foo = 3
print(if_foo)

Working on it already ^^

Same issue with the aggressive optimizations