alex / rply

An attempt to port David Beazley's PLY to RPython, and give it a cooler API.
BSD 3-Clause "New" or "Revised" License
381 stars 60 forks source link

How to read the commands for all lines? #105

Closed lui-dias closed 3 years ago

lui-dias commented 3 years ago

I have a file with the following commands:

print(if 1 == 1)
print(if 1 == 1)

When reading the first line, it returns True, but on the second it returns a ValueError. This is because my program reads only the first line. Is there any way to read all the lines?