Thank you! The way I was thinking about it, it wouldn't compile, thinking |
took precedence.
On Wed, Nov 17, 2010 at 6:06 PM, Chris Double chris.dou...@double.co.nzwrote:
On Thu, Nov 18, 2010 at 1:53 PM, Jim mack j...@less2do.com wrote:
ws = | \t = [[ string whitespace boa ]]
Change this
Double [mailto:chris.dou...@double.co.nz]
Sent: Wednesday, November 17, 2010 4:09 PM
To: factor-talk@lists.sourceforge.net
Subject: Re: [Factor-talk] How do I construct a sequence from
valuesonthestack
On Thu, Nov 18, 2010 at 12:52 PM, Jeff C. Britton j...@iteris.com wrote:
I have a string that I
On Thu, Nov 18, 2010 at 1:42 PM, Jim mack j...@less2do.com wrote:
I'm having trouble with ! Is there some combination of ![a-zA-Z0-9]+ that
will match white-space or punctuation?
There's a few ways you can do it. You should be able to use
parenthesis to use '!':
alpha = [a-zA-Z0-9]
rule =
TUPLE: digits text ;
TUPLE: punc text ;
TUPLE: upper text ;
TUPLE: lower text ;
TUPLE: whitespace text ;
EBNF: categorize
digits = [0-9]+ = [[ string digits boa ]]
lower = [a-z]+ = [[ string lower boa ]]
upper = [A-Z]+ = [[ string upper boa ]]
punc = [!-/:-...@[-`{-~]+ = [[ string punc boa ]]
On Thu, Nov 18, 2010 at 1:53 PM, Jim mack j...@less2do.com wrote:
ws = | \t = [[ string whitespace boa ]]
Change this to:
ws = ( | \t) = [[ string whitespace boa ]]
In the first case the = is binding to the \t part of the clause.
Chris.
--
http://www.bluishcoder.co.nz