syntax: allow anonymous MAIN:.
							parent
							
								
									551e079da8
								
							
						
					
					
						commit
						d2114e913c
					
				| 
						 | 
				
			
			@ -242,8 +242,10 @@ IN: bootstrap.syntax
 | 
			
		|||
    ] define-core-syntax
 | 
			
		||||
 | 
			
		||||
    "MAIN:" [
 | 
			
		||||
        scan-word
 | 
			
		||||
        dup ( -- ) check-stack-effect
 | 
			
		||||
        scan-word dup \ [ = [
 | 
			
		||||
            drop "( main )" <uninterned-word> dup
 | 
			
		||||
            parse-quotation ( -- ) define-declared
 | 
			
		||||
        ] when dup ( -- ) check-stack-effect
 | 
			
		||||
        [ current-vocab main<< ]
 | 
			
		||||
        [ current-source-file get [ main<< ] [ drop ] if* ] bi
 | 
			
		||||
    ] define-core-syntax
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue