[chuck-users] anybody still use this thing?
v.schneidermann at gmail.com
Mon Sep 5 09:46:49 EDT 2016
I've written a Lisp interpreter in ChucK  and went through the
parsing stage, among other obstacles. String manipulation is indeed a
bit weird, perhaps you're running into a bug where a substring cannot be
cut out until the end of a string .
If you can get away with it, I recommend using regular expressions to
capture a single token, add it to an array of tokens and move forward in
the input by its length until the end of input. In this case you might
be able to reuse my code. Otherwise you'll need to write a lexer from
scratch, for this Jack Crenshaw's compiler tutorial  might be useful.
Good luck with your endeavor!
More information about the chuck-users