racket / rhombus

Rhombus programming language
Other
332 stars 59 forks source link

Initial methods for Port.Input #526

Closed samdphillips closed 1 month ago

samdphillips commented 1 month ago

A few initial methods for reading from Port.Input. Documentation adjusted from the associated Racket functions. The functions all have a required Port.Input argument, unlike the Racket equivalents which use a default parameter.

mflatt commented 1 month ago

JFYI: This doesn't build for me due to some problem in compiler/demod. But using syntax-parse instead of define-syntax-parse-rule avoids the problem, and that change needed anyway to minimize dependencies. I'm preparing the change and some other proposed changes to the PR.

mflatt commented 1 month ago

I pushed some extra commits with the following goals:

I also ended up filling in the Char class.

mflatt commented 1 month ago

Ok if I squash to merge? Or would you like to keep the individual commits or some different organization?

samdphillips commented 1 month ago

Squash is fine