, given the way the lexer is
implemented, but I cannot figure out how to change this behavior.
Could someone please give me directions to fix this ?
Thanks in advance.
Regards,
Philippe Mechaï
Sample code:
#lang racket/base
(require racket/port
parser-tools/lex
; Test 2
(check-equal? (collect-tokens "4 a") (list (token-NUM 4) (token-ID 'a)))
;; Test 3
(check-exn exn:fail? (lambda () (collect-tokens "4a")))
;;
I thought that, given the way the NUM and ID tokens are defined (resp. only
digits, only letters), the third test should pass...it does not.
Thanks again for your time.
Regards,
Philippe Mechaï
Racket Users list:
http://lists.racket-lang.org/users
On Thu, Oct 18, 2012 at 01:56:20PM -0600, Danny Yoo wrote:
> > ;; Test 3
> > (check-exn exn:fail? (lambda () (collect-tokens "4a")))
> > ;;
> >
> > I thought that, given the way the NUM and ID tokens are defined (resp. only
> > digits, only letters), the third test
Just for the record, the bug seems to be known to someone :)
https://github.com/racket/gui/blob/master/gui-lib/framework/private/color.rkt#L989
On Mon, Oct 8, 2018 at 8:15 PM Robby Findler
wrote:
> I like the idea that you suggested where the parens keep their paren
> color but the rest of the
Hi
You could simply do a (copy-port ip op) and remove the content-length and
buffer parts i think.
Le mar. 16 oct. 2018 à 21:17, Chansey a écrit :
>
> Dear all,
>
> I wrote some experiment code for net/http-client.
>
> The purpose is downloading some images from web.
>
> This is my code (run
Indeed the issue is with your call to pipe-content-length which is to be
used with pipes and is not the Content-Length header returned when doing
HTTP requests.
The Content-Length can be found in the list of headers returned by the call
to http-sendrecv (second value or b in your let-values call).
Hi Brian
I think you need to add a call to flush-output after sending data to outp
Regards
Philippe
Le jeu. 15 nov. 2018 à 19:51, Brian Adkins a écrit :
> I'm porting a Ruby application to Racket (will be deployed on Linux, but
> I'm developing on OSX). It uses the s3270 terminal emulator to
dylib is the OSX equivalent of Linux .so, so nothing wrong here.
Looking at the ffi documentation it seems that libraries are looked into a
list of paths reported by (get-lib-search-dirs)
See
https://docs.racket-lang.org/raco/dirs.html#%28def._%28%28lib._setup%2Fdirs..rkt%29._get-lib-search-dirs%29
Hi,
If I understand the racket code correctly (*), you cannot generate windows
paths using strings on unix.
But you can do it using bytes->path-element which allows you to specify the
path-convention (windows here):
(build-path/convention-type 'windows (bytes->path-element (string->bytes/utf-8
9 matches
Mail list logo