2010-04-18 19:33:18 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								! Copyright (C) 2010 Doug Coleman.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								! See http://factorcode.org/license.txt for BSD license.
							 | 
						
					
						
							
								
									
										
										
										
											2010-05-20 17:32:35 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								USING: alien.parser cuda cuda.libraries io.backend
							 | 
						
					
						
							
								
									
										
										
										
											2010-05-20 20:56:20 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								fry kernel lexer namespaces parser ;
							 | 
						
					
						
							
								
									
										
										
										
											2010-04-18 19:33:18 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								IN: cuda.syntax
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2010-04-19 01:46:03 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								SYNTAX: CUDA-LIBRARY:
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-21 19:36:24 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    scan-token scan-word scan-object
							 | 
						
					
						
							
								
									
										
										
										
											2010-05-20 20:56:20 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    '[ _ _ add-cuda-library ]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    [ current-cuda-library set-global ] bi ;
							 | 
						
					
						
							
								
									
										
										
										
											2010-04-18 19:33:18 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								SYNTAX: CUDA-FUNCTION:
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 15:38:38 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    scan-token [ create-word-in current-cuda-library get ] keep
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-19 19:24:47 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    scan-c-args drop define-cuda-function ;
							 | 
						
					
						
							
								
									
										
										
										
											2010-04-18 19:33:18 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2010-05-20 18:45:35 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								SYNTAX: CUDA-GLOBAL:
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 15:38:38 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    scan-token [ create-word-in current-cuda-library get ] keep
							 | 
						
					
						
							
								
									
										
										
										
											2010-05-20 18:45:35 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    define-cuda-global ;
							 |