[racket-users] Re: Writing to serial port?

2021-09-23 Thread Zeta Convex
out 'none) (write-byte whatever out) (close-output-port out) On Thursday, 23 September 2021 at 18:31:53 UTC+1 Zeta Convex wrote: > > How do I write to a serial port? I'm on Linux, and want a baud rate of > 115200. > > I'm new to Scheme. I can't seem to find a l

[racket-users] Writing to serial port?

2021-09-23 Thread Zeta Convex
How do I write to a serial port? I'm on Linux, and want a baud rate of 115200. I'm new to Scheme. I can't seem to find a library to do what I want. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiv

[racket-users] Re: parser-tools/lex

2018-08-10 Thread Zeta Convex
On Friday, 10 August 2018 13:57:18 UTC+1, Zeta Convex wrote: > > I'm trying to match anything that isn't a tab or space, but I end up > matching nearly everything. > Ah, I think I just figured it out. I need to replace >*[(:+ (complement (:or #\Tab #\Sp

[racket-users] parser-tools/lex

2018-08-10 Thread Zeta Convex
I'm trying to match anything that isn't a tab or space, but I end up matching nearly everything. Here's a snip from the code: (define tsv-lexer (lexer [(eof) 'EOF] [#\space (tsv-lexer input-port)] [#\tab (tsv-lexer input-port)] *[(:+ (complement (:or #\Tab #\Space)))* (begin

Re: [racket-users] bf "module: initial import is not a well-formed module path"

2018-08-09 Thread Zeta Convex
On Thursday, 9 August 2018 21:34:16 UTC+1, Shu-Hung You wrote: > > Change the first few lines of lang/reader.rkt to: > > #lang s-exp syntax/module-reader > *bf/language * > #:read my-read > #:read-syntax my-read-syntax > ;; ... > > Ah yes, that did it! Thanks! And just install the entire di

[racket-users] Re: bf "module: initial import is not a well-formed module path"

2018-08-09 Thread Zeta Convex
OK. I had a partial success. reader.rkt needs to start with something like: #lang s-exp syntax/module-reader "language.rkt" #:read my-read #:read-syntax my-read-syntax ... except that I can't run my BF program (hello2.rkt) from an arbitrary directory, because it doesn't know where to locate lang

[racket-users] bf "module: initial import is not a well-formed module path"

2018-08-09 Thread Zeta Convex
I'm following the example from "F*dging up a Racket" at https://www.hashcollision.org/brainfudge/index.html I set up a project within ~/.racket/6.12/collects: . ├── bf │ ├── hello2.rkt │ ├── hello.rkt │ ├── lang │ │ └── reader.rkt │ ├── language.rkt │ ├── parser.rkt │