<div dir="ltr">Matthew,<br><br>On 29 Mar 2013 03:03, "Matthew Flatt" <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>> wrote:<br>> FWIW, there are number-parsing regexp constructions in<br>><br>
> collects/r6rs/private/readtable.rkt (see `rx:number')<br>> [...]<br>><br>> The first, as the path suggests, is R6RS instead of Racket.<br><br>I've just looked at the R6RS regexps. Thanks for the pointers, but...
they (it?) have been broken down into sensible sized chunks; but I'm
sure that once you've built up a single string (the kind that grep would
like) you'll end up with a three-page monstrosity like mine.<br><br>For amusement, here is the head of VIM's scheme.vim syntax file:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<div><span class=""></span><span class=""></span></div>" Vim syntax file<br>" Language: Scheme (R5RS + some R6RS extras)<br>" Last Change: 2009 Nov 27<br>" Maintainer: Sergey Khorev <<a href="mailto:sergey.khorev@gmail.com">sergey.khorev@gmail.com</a>><br>
" Original author: Dirk van Deun <<a href="mailto:dirk@igwe.vub.ac.be">dirk@igwe.vub.ac.be</a>><br><br>" This script incorrectly recognizes some junk input as numerals:<br>" parsing the complete system of Scheme numerals using the pattern<br>
" language is practically impossible: I did a lax approximation.<br></blockquote><div><br></div><div>Schemes' number representations are notorious!<br><br></div><div>Tim <br></div><br></div>