14 lines
		
	
	
		
			407 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			407 B
		
	
	
	
		
			Factor
		
	
	
USING: help.markup help.syntax strings ;
 | 
						|
IN: simple-tokenizer
 | 
						|
 | 
						|
HELP: tokenize
 | 
						|
{ $values { "input" string } { "ast" "a sequence of strings" } }
 | 
						|
{ $description
 | 
						|
    "Tokenize a string. Supported syntax:"
 | 
						|
    { $list
 | 
						|
        { { $snippet "foo bar baz" } " - simple tokens" }
 | 
						|
        { { $snippet "foo\\ bar" } " - token with an escaped space"}
 | 
						|
        { { $snippet "\"foo bar\"" } " - quoted token" }
 | 
						|
    }
 | 
						|
} ;
 |