| 
									
										
										
										
											2008-06-25 04:25:08 -04:00
										 |  |  | ! Copyright (C) 2008 Slava Pestov. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							| 
									
										
										
										
											2009-05-14 23:31:29 -04:00
										 |  |  | USING: parser vocabs.parser words kernel classes compiler.units lexer ;
 | 
					
						
							| 
									
										
										
										
											2008-06-25 04:25:08 -04:00
										 |  |  | IN: classes.parser | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : save-class-location ( class -- )
 | 
					
						
							|  |  |  |     location remember-class ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-28 13:28:52 -04:00
										 |  |  | : create-class-in ( string -- word )
 | 
					
						
							| 
									
										
										
										
											2008-06-25 04:25:08 -04:00
										 |  |  |     current-vocab create | 
					
						
							|  |  |  |     dup save-class-location | 
					
						
							|  |  |  |     dup predicate-word dup set-word save-location ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : CREATE-CLASS ( -- word )
 | 
					
						
							|  |  |  |     scan create-class-in ;
 |