| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | ! Copyright (C) 2005, 2007 Slava Pestov. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							|  |  |  | USING: arrays kernel parser sequences words help help.topics | 
					
						
							| 
									
										
										
										
											2008-01-09 04:52:08 -05:00
										 |  |  | namespaces vocabs definitions compiler.units ;
 | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | IN: help.syntax | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : HELP: | 
					
						
							|  |  |  |     scan-word bootstrap-word | 
					
						
							|  |  |  |     dup set-word | 
					
						
							|  |  |  |     dup >link save-location | 
					
						
							|  |  |  |     \ ; parse-until >array swap set-word-help ; parsing | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : ARTICLE: | 
					
						
							|  |  |  |     location >r | 
					
						
							|  |  |  |     \ ; parse-until >array [ first2 ] keep 2 tail <article> | 
					
						
							| 
									
										
										
										
											2007-12-24 17:18:26 -05:00
										 |  |  |     over add-article >link r> remember-definition ; parsing | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | : ABOUT: | 
					
						
							|  |  |  |     scan-word dup parsing? [ | 
					
						
							|  |  |  |         V{ } clone swap execute first
 | 
					
						
							|  |  |  |     ] when in get vocab set-vocab-help ; parsing |