Browse thread
Ocamllex question
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Matt Gushee <matt@g...> |
| Subject: | Re: Another problem (was Re: [Caml-list] Ocamllex question) |
Michael Wohlwend wrote: >>Not essential, but it would be nice to allow escaped quotes within such >>strings: > you write a extra lexer-rule which gets called when a " is seen; in this rule > you read single chars and append them to a string buffer. If you see a > backslash you handle the next character special; example: > .... Thank you! That was just the sort of example I needed ... and I understand ocamllex a little better now. Maybe you should post something like this on the Web. There's not much in the way of practical examples for ocamllex. -- Matt Gushee Englewood, CO, USA