Laythe-lang / Laythe

A gradually typed language originally based on the crafting interpreters series
MIT License
65 stars 4 forks source link

Return nil on stdin readline when EOF #121

Closed jonnyboyC closed 1 year ago

jonnyboyC commented 1 year ago

Summary

I'm reading through crafting interpreters again and realized I don't have any way of detecting an EOF with my current stdin impl. Now stdin.readline will return nil of only an EOF is read.