Recognizing $
Posted: Tue Apr 29, 2008 2:04 pm
I'm writing rules that recognize currency (American only, for now). So far, I have two rules that recognize the $ at both the beginning and the end of the input. Yes, some of the entries have the $ at the end.
Right now, I have the $ in the SEPLIST so that it is pulled out and turned into a separate token. I tried numerous variations with it not listed in SEPLIST, but none of those worked for all of the tests.
I'm trying to nullify the $ token, but set a flag so that it can be PREFIXed to the output later.
Any hints as to how I could do this?
Right now, I have the $ in the SEPLIST so that it is pulled out and turned into a separate token. I tried numerous variations with it not listed in SEPLIST, but none of those worked for all of the tests.
I'm trying to nullify the $ token, but set a flag so that it can be PREFIXed to the output later.
Any hints as to how I could do this?