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 ]]
ws = " " | "\t" => [[ >string whitespace boa ]]
line = (ws|digits|lower|upper|punc)+
;EBNF

" 'Jim Mack.' " categorize

V{
    " "
    T{ punc { text "'" } }
    T{ upper { text "J" } }
    T{ lower { text "im" } }
    " "
    T{ upper { text "M" } }
    T{ lower { text "ack" } }
    T{ punc { text ".'" } }
    " "
}

Please, how do I get the ws to function the way the other char sets do?
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to