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
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
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
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
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
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
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
│
7 matches
Mail list logo